[MPlayer-dev-eng] [PATCH] socklib check fix

Emanuele Giaquinta e.giaquinta at glauco.it
Tue Oct 10 15:59:39 CEST 2006


Hi,

Attached patch makes the socklib check search gethostbyname/socket also
in libc; on glibc it avoids a useless linking to libnsl.

-- 
Emanuele Giaquinta
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 20145)
+++ configure	(working copy)
@@ -2743,7 +2743,7 @@
 #include <sys/socket.h>
 int main(void) { (void) gethostbyname(0); (void) socket(AF_INET, SOCK_STREAM, 0); return 0; }
 EOF
-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" && break
 done
 if test $_winsock2 = auto && not cygwin ; then


More information about the MPlayer-dev-eng mailing list