From 908329f6bd2db09f701a17f0e8217a6d825f5cb2 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 19 Sep 2002 16:35:12 +0000 Subject: [PATCH] * configure.ac: Try linking LDAP as just -lldap as it seems very recent OpenLDAPs (>=2.0.23) support that. --- ChangeLog | 5 +++++ configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e9fafd3f..aa17caf60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-09-19 David Shaw + + * configure.ac: Try linking LDAP as just -lldap as it seems very + recent OpenLDAPs (>=2.0.23) support that. + 2002-09-14 David Shaw * configure.ac: Try linking LDAP without -lresolv first, just in diff --git a/configure.ac b/configure.ac index b4f6b65df..642eedf49 100644 --- a/configure.ac +++ b/configure.ac @@ -356,11 +356,11 @@ AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt, [NETLIBS="-lsocket $NETLIBS"])) # Try and link a LDAP test program to weed out unusable LDAP -# libraries. -lldap -llber [-lresolv] is for OpenLDAP. -lldapssl41 +# libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. -lldapssl41 # is for Mozilla LDAP. if test "$try_ldap" = yes ; then - for LDAPLIBS in "-lldap -llber" "-lldap -llber -lresolv" "-lldapssl41"; do + for LDAPLIBS in "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lldapssl41"; do _ldap_save_libs=$LIBS LIBS="$LDAPLIBS $NETLIBS $LIBS"