mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
configure.ac: If LDAP comes up unusable, try #including <lber.h> before
giving up. Old versions of OpenLDAP require that.
This commit is contained in:
parent
a2dcc14710
commit
5a797b494b
@ -1,3 +1,8 @@
|
||||
2002-05-08 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* configure.ac: If LDAP comes up unusable, try #including <lber.h>
|
||||
before giving up. Old versions of OpenLDAP require that.
|
||||
|
||||
2002-05-03 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* configure.ac: In g10defs.h, use \ for the directory separator
|
||||
|
17
configure.ac
17
configure.ac
@ -297,7 +297,22 @@ if test "$try_ldap" = yes ; then
|
||||
[gnupg_cv_func_ldap_init=yes],
|
||||
[gnupg_cv_func_ldap_init=no])])
|
||||
|
||||
if test $gnupg_cv_func_ldap_init = yes; then
|
||||
if test $gnupg_cv_func_ldap_init = no; then
|
||||
AC_CACHE_CHECK([whether I can make LDAP be sane with lber.h],
|
||||
[gnupg_cv_func_ldaplber_init],
|
||||
[AC_TRY_LINK([#include <lber.h>
|
||||
#include <ldap.h>],
|
||||
[ldap_open("foobar",1234);],
|
||||
[gnupg_cv_func_ldaplber_init=yes],
|
||||
[gnupg_cv_func_ldaplber_init=no])])
|
||||
fi
|
||||
|
||||
if test "$gnupg_cv_func_ldaplber_init" = yes ; then
|
||||
AC_DEFINE(NEED_LBER_H,1,[Define if the LDAP library requires including lber.h before ldap.h])
|
||||
fi
|
||||
|
||||
if test "$gnupg_cv_func_ldap_init" = yes || \
|
||||
test "$gnupg_cv_func_ldaplber_init" = yes ; then
|
||||
GPGKEYS_LDAP="gpgkeys_ldap"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user