mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
r15376: Add detection of -lnsl, required for building on SUN boxes.
(This used to be commit 49bac12767ca59095ad6609a3826f7f17ddb601c)
This commit is contained in:
parent
e595ede02f
commit
a4a2a4b833
@ -25,7 +25,7 @@ PRIVATE_PROTO_HEADER = netif/proto.h
|
||||
OBJ_FILES = \
|
||||
netif/interface.o \
|
||||
netif/netif.o
|
||||
PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL
|
||||
PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL EXT_NSL
|
||||
# End SUBSYSTEM LIBNETIF
|
||||
##############################
|
||||
|
||||
|
@ -37,6 +37,23 @@ fi
|
||||
|
||||
SMB_EXT_LIB(EXT_SOCKET,[${SOCKET_LIBS}],[${SOCKET_CFLAGS}],[${SOCKET_CPPFLAGS}],[${SOCKET_LDFLAGS}])
|
||||
|
||||
AC_CHECK_FUNCS(gethostbyname)
|
||||
if test x"$ac_cv_func_gethostbyname" = x"no"; then
|
||||
AC_CHECK_LIB_EXT(nsl_s, NSL_LIBS, gethostbyname)
|
||||
AC_CHECK_LIB_EXT(nsl, NSl_LIBS, gethostbyname)
|
||||
AC_CHECK_LIB_EXT(socket, NSL_LIBS, gethostbyname)
|
||||
SMB_ENABLE(EXT_NSL,YES)
|
||||
dnl We can't just call AC_CHECK_FUNCS(gethostbyname) here, because the value
|
||||
dnl has been cached.
|
||||
if test x"$ac_cv_lib_ext_nsl_s_gethostbyname" != x"yes" &&
|
||||
test x"$ac_cv_lib_ext_nsl_gethostbyname" != x"yes" &&
|
||||
test x"$ac_cv_lib_ext_socket_gethostbyname" != x"yes"; then
|
||||
AC_MSG_ERROR([no gethostbyname() function available!])
|
||||
fi
|
||||
fi
|
||||
|
||||
SMB_EXT_LIB(EXT_NSL,[${NSL_LIBS}],[],[],[])
|
||||
|
||||
############################################
|
||||
# check for unix domain sockets
|
||||
AC_CACHE_CHECK([for unix domain sockets],samba_cv_unixsocket, [
|
||||
|
@ -6,8 +6,8 @@ SUBSYSTEM = LIBSAMBA-SOCKET
|
||||
OUTPUT_TYPE = INTEGRATED
|
||||
OBJ_FILES = \
|
||||
socket_ipv4.o
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET
|
||||
PRIVATE_DEPENDENCIES = LIBSAMBA-ERRORS
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET EXT_NSL
|
||||
PRIVATE_DEPENDENCIES = LIBSAMBA-ERRORS
|
||||
# End MODULE socket_ipv4
|
||||
################################################
|
||||
|
||||
@ -18,7 +18,7 @@ SUBSYSTEM = LIBSAMBA-SOCKET
|
||||
OUTPUT_TYPE = INTEGRATED
|
||||
OBJ_FILES = \
|
||||
socket_ipv6.o
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET EXT_NSL
|
||||
# End MODULE socket_ipv6
|
||||
################################################
|
||||
|
||||
@ -29,7 +29,7 @@ SUBSYSTEM = LIBSAMBA-SOCKET
|
||||
OUTPUT_TYPE = INTEGRATED
|
||||
OBJ_FILES = \
|
||||
socket_unix.o
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET
|
||||
PUBLIC_DEPENDENCIES = EXT_SOCKET EXT_NSL
|
||||
# End MODULE socket_unix
|
||||
################################################
|
||||
|
||||
|
@ -31,7 +31,7 @@ OBJ_FILES = xfile.o \
|
||||
module.o
|
||||
PUBLIC_DEPENDENCIES = \
|
||||
LIBREPLACE LIBCRYPTO DL LIBTALLOC \
|
||||
SOCKET_WRAPPER
|
||||
SOCKET_WRAPPER EXT_NSL
|
||||
|
||||
[SUBSYSTEM::PIDFILE]
|
||||
PRIVATE_PROTO_HEADER = pidfile.h
|
||||
|
@ -11,7 +11,7 @@ OBJ_FILES = \
|
||||
ndr/ndr_basic.o \
|
||||
ndr/ndr_string.o \
|
||||
ndr/ndr_misc.o
|
||||
PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBTALLOC LIBSAMBA-UTIL CHARSET
|
||||
PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBTALLOC LIBSAMBA-UTIL CHARSET EXT_NSL
|
||||
# End SUBSYSTEM LIBNDR
|
||||
################################################
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user