Make the socklib check search gethostbyname/socket in libc.

On glibc it avoids a useless linking to libnsl.
patch by Emanuele Giaquinta, e.giaquinta glauco it


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20157 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-10-11 14:09:30 +00:00
parent b58659a503
commit 6ee7a1bef2
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -2744,7 +2744,7 @@ cat > $TMPC << EOF
int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; }
EOF
_socklib=no
for _ld_tmp in "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do
cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break
done
if test $_winsock2 = auto && not cygwin ; then