#! /bin/sh
-# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.675 2009/01/16 22:28:31 kurt Exp .
+# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.676 2009/01/16 22:45:25 kurt Exp .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61.
 #
 done
 
 
-if test "$ac_cv_mingw32" = yes ; then
+if test "$ac_cv_mingw32" = yes -o \
+       ( "$ac_cv_cygwin32" = yes -a $GCC = no )
+then
 
 
 for ac_header in winsock.h winsock2.h
 
 )
 
 dnl Only check Winsock on MinGW
-if test "$ac_cv_mingw32" = yes ; then
+if test "$ac_cv_mingw32" = yes -o \
+       ( "$ac_cv_cygwin32" = yes -a $GCC = no )
+then
        AC_CHECK_HEADERS( winsock.h winsock2.h )
 fi