summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-20 17:45:23 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-20 17:45:23 +0000
commit5c913362dcc2a7d64335a43ae03867aa9e6beef4 (patch)
tree73dc1117372b0edf72019752cef055da9e495ddf
parentafcb58ac9eb98bb22b83f70ee7b1338d43ae2150 (diff)
downloadsamba-5c913362dcc2a7d64335a43ae03867aa9e6beef4.tar.gz
samba-5c913362dcc2a7d64335a43ae03867aa9e6beef4.tar.bz2
samba-5c913362dcc2a7d64335a43ae03867aa9e6beef4.zip
Only build pdb_ldap if both ldap libs and headers are found
(This used to be commit 228110e83fce91c811c82f6f836d313b6b79ff87)
-rw-r--r--source3/configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 958771368e..b6fabe6085 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -472,7 +472,7 @@ AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/i
AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
-AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h)
+AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
AC_CHECK_HEADERS(sys/syslog.h syslog.h)
# In valgrind 1.0.x, it's just valgrind.h. In 1.9.x+ there's a
@@ -2247,7 +2247,7 @@ if test x"$with_ldap_support" = x"yes"; then
if test x$have_ldap != xyes; then
AC_CHECK_LIB(ldap, ldap_domain2hostlist, [LIBS="$LIBS -lldap";
AC_DEFINE(HAVE_LDAP,1,[Whether ldap is available])])
- default_modules="$default_modules pdb_ldap"
+ AC_CHECK_HEADERS([ldap.h lber.h], [default_modules="$default_modules pdb_ldap"])
########################################################
# If we have LDAP, does it's rebind procedure take 2 or 3 arguments?