changeset 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 94e575f73f9f
children a580febbb306
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <netdb.h>
-int main(void) { (void) gethostbyname(0); return 0; }
+#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
   cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && break