From a66210ff32b0127256d27043cff31a415b39bcd5 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 15 Oct 2005 10:46:24 +0000 Subject: Extend the network test to also check the socket libs. patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16770 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index a285eed9ea..acf3b606d0 100755 --- a/configure +++ b/configure @@ -2482,7 +2482,8 @@ echocheck "socklib" # for BeOS (socket stuff is in -lsocket, gethostbyname and friends in -lbind): cat > $TMPC << EOF #include -int main(void) { (void) gethostbyname(0); return 0; } +#include +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 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break -- cgit v1.2.3