summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-16 15:23:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:12 -0500
commitb156fb83db3e55b79d39328e33d41272b4a90a0b (patch)
tree01233707d9341eb18192e0fe5a4015f0c19fa579 /source4/lib/socket
parent044c570ea9348df6d6618bbef6dd4bc21a61d1ed (diff)
downloadsamba-b156fb83db3e55b79d39328e33d41272b4a90a0b.tar.gz
samba-b156fb83db3e55b79d39328e33d41272b4a90a0b.tar.bz2
samba-b156fb83db3e55b79d39328e33d41272b4a90a0b.zip
r12959: hopefully fix bug #3365 this time
metze (This used to be commit 8fc2b68aa8d1a6bb3a828b3a1ab5f2a4f354f6f7)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/config.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/lib/socket/config.m4 b/source4/lib/socket/config.m4
index 1d1d66c1a1..4f76f3b6d4 100644
--- a/source4/lib/socket/config.m4
+++ b/source4/lib/socket/config.m4
@@ -18,14 +18,16 @@ fi
# it.
AC_CHECK_FUNCS(connect)
if test x"$ac_cv_func_connect" = x"no"; then
- AC_CHECK_LIB(nsl_s, SOCKET_LIBS, printf)
- AC_CHECK_LIB(nsl, SOCKET_LIBS, printf)
- AC_CHECK_LIB(socket, SOCKET_LIBS, connect)
- AC_CHECK_LIB(inet, SOCKET_LIBS, connect)
+ AC_CHECK_LIB_EXT(nsl_s, SOCKET_LIBS, connect)
+ AC_CHECK_LIB_EXT(nsl, SOCKET_LIBS, connect)
+ AC_CHECK_LIB_EXT(socket, SOCKET_LIBS, connect)
+ AC_CHECK_LIB_EXT(inet, SOCKET_LIBS, connect)
SMB_EXT_LIB_ENABLE(SOCKET,YES)
dnl We can't just call AC_CHECK_FUNCS(connect) here, because the value
dnl has been cached.
- if test x"$ac_cv_lib_ext_socket_connect" = x"yes" ||
+ if test x"$ac_cv_lib_ext_nsl_s_connect" = x"yes" ||
+ test x"$ac_cv_lib_ext_nsl_connect" = x"yes" ||
+ test x"$ac_cv_lib_ext_socket_connect" = x"yes" ||
test x"$ac_cv_lib_ext_inet_connect" = x"yes"; then
AC_DEFINE(HAVE_CONNECT,1,[Whether the system has connect()])
else