Mercurial > mplayer.hg
comparison configure @ 16769:fbc6a8f05730
Extend the network test to also check the socket libs.
patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net >
author | diego |
---|---|
date | Sat, 15 Oct 2005 10:46:24 +0000 |
parents | 4fe8f21fd1da |
children | 1a472bba92c7 |
comparison
equal
deleted
inserted
replaced
16768:94e575f73f9f | 16769:fbc6a8f05730 |
---|---|
2480 echocheck "socklib" | 2480 echocheck "socklib" |
2481 # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl): | 2481 # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl): |
2482 # for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind): | 2482 # for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind): |
2483 cat > $TMPC << EOF | 2483 cat > $TMPC << EOF |
2484 #include <netdb.h> | 2484 #include <netdb.h> |
2485 int main(void) { (void) gethostbyname(0); return 0; } | 2485 #include <sys/socket.h> |
2486 int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; } | |
2486 EOF | 2487 EOF |
2487 for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do | 2488 for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do |
2488 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break | 2489 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break |
2489 done | 2490 done |
2490 if test $_winsock2 = auto && not cygwin ; then | 2491 if test $_winsock2 = auto && not cygwin ; then |