comparison configure @ 29944:72279983abb0

Disable winsock when we already found a working socklib instead of checking blindly for cygwin and uselessly running the check on e.g. Linux.
author reimar
date Wed, 09 Dec 2009 17:55:34 +0000
parents a57d9fbbd29c
children 7f09bc7a4279
comparison
equal deleted inserted replaced
29943:1752ec1e845a 29944:72279983abb0
3048 EOF 3048 EOF
3049 _socklib=no 3049 _socklib=no
3050 for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do 3050 for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
3051 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break 3051 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break
3052 done 3052 done
3053 if test $_winsock2_h = auto && ! cygwin ; then 3053 test $_socklib = yes && test $_winsock2_h = auto && _winsock2_h=no
3054 if test $_winsock2_h = auto ; then
3054 _winsock2_h=no 3055 _winsock2_h=no
3055 cat > $TMPC << EOF 3056 cat > $TMPC << EOF
3056 #include <winsock2.h> 3057 #include <winsock2.h>
3057 int main(void) { (void) gethostbyname(0); return 0; } 3058 int main(void) { (void) gethostbyname(0); return 0; }
3058 EOF 3059 EOF