changeset 3869:fb8ff040ff17

missing -lsocket for sunos qnx & win32
author pl
date Sat, 29 Dec 2001 00:09:10 +0000
parents 8a4ef002bb89
children 29d567e49464
files configure
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Dec 29 00:03:47 2001 +0000
+++ b/configure	Sat Dec 29 00:09:10 2001 +0000
@@ -1065,8 +1065,9 @@
 #include <netdb.h>
 int main(void) { (void) gethostbyname(0); return 0; }
 EOF
-cc_check $_ld_sock -lsocket && _ld_sock="$_ld_sock -lsocket"
-cc_check $_ld_sock -lnsl && _ld_sock="$_ld_sock -lnsl"
+cc_check -lsocket && _ld_sock="-lsocket"
+cc_check -lnsl && _ld_sock="-lnsl"
+cc_check -lsocket -lnsl && _ld_sock="-lsocket -lnsl"
 if test "$_ld_sock" ; then
   echores "yes (using $_ld_sock)"
 else
@@ -2134,9 +2135,7 @@
 
 
 echocheck "Win32 DLL support"
-if test "$_win32" = auto && qnx ; then
-  _win32=no
-fi
+qnx && _win32=no
 if test "$_win32" = auto ; then
   _win32=no
   if x86 ; then