mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* configure.ac: OpenLDAP 2.0.27 changed the dependencies again. Add a
"LDAPLIBS" variable so users can try and suggest the right dependencies for their platform.
This commit is contained in:
parent
3832320327
commit
60fd09df9f
@ -1,3 +1,9 @@
|
||||
2002-10-07 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* configure.ac: OpenLDAP 2.0.27 changed the dependencies again.
|
||||
Add a "LDAPLIBS" variable so users can try and suggest the right
|
||||
dependencies for their platform.
|
||||
|
||||
2002-10-02 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* configure.ac: Make "new" the default for TIGER. Still use
|
||||
|
13
configure.ac
13
configure.ac
@ -368,15 +368,17 @@ 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
|
||||
# is for Mozilla LDAP.
|
||||
# libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. OpenLDAP in
|
||||
# general is terrible with creating weird dependencies. If all else
|
||||
# fails, the user can play guess-the-dependency by using something
|
||||
# like LDAPLIBS="-lfoo" ./configure
|
||||
|
||||
if test "$try_ldap" = yes ; then
|
||||
for LDAPLIBS in "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lldapssl41"; do
|
||||
for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv"; do
|
||||
_ldap_save_libs=$LIBS
|
||||
LIBS="$LDAPLIBS $NETLIBS $LIBS"
|
||||
LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
|
||||
|
||||
AC_MSG_CHECKING([whether LDAP via \"$LDAPLIBS\" is present and sane])
|
||||
AC_MSG_CHECKING([whether LDAP via \"$MY_LDAPLIBS\" is present and sane])
|
||||
AC_TRY_LINK([#include <ldap.h>],[ldap_open("foobar",1234);],
|
||||
[gnupg_cv_func_ldap_init=yes],[gnupg_cv_func_ldap_init=no])
|
||||
AC_MSG_RESULT([$gnupg_cv_func_ldap_init])
|
||||
@ -396,6 +398,7 @@ if test "$try_ldap" = yes ; then
|
||||
if test "$gnupg_cv_func_ldap_init" = yes || \
|
||||
test "$gnupg_cv_func_ldaplber_init" = yes ; then
|
||||
GPGKEYS_LDAP="gpgkeys_ldap"
|
||||
LDAPLIBS=$MY_LDAPLIBS
|
||||
fi
|
||||
|
||||
LIBS=$_ldap_save_libs
|
||||
|
Loading…
x
Reference in New Issue
Block a user