# HG changeset patch # User diego # Date 1129373184 0 # Node ID fbc6a8f057309a383e8a023a1e9809ec6da7e7f8 # Parent 94e575f73f9f38606b70c8742ab0fda4a295503e Extend the network test to also check the socket libs. patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net > diff -r 94e575f73f9f -r fbc6a8f05730 configure --- a/configure Fri Oct 14 20:34:17 2005 +0000 +++ b/configure Sat Oct 15 10:46:24 2005 +0000 @@ -2482,7 +2482,8 @@ # 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