add logic to make sure we're building against OpenLDAP >= 2
2001-03-02 Chris Toshok <toshok@ximian.com> * configure.in: add logic to make sure we're building against OpenLDAP >= 2 svn path=/trunk/; revision=8519
This commit is contained in:
committed by
Chris Toshok
parent
df2372ad84
commit
6f859d23be
@ -1,3 +1,7 @@
|
||||
2001-03-02 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* configure.in: add logic to make sure we're building against OpenLDAP >= 2
|
||||
|
||||
2001-03-01 Christopher James Lahey <clahey@ximian.com>
|
||||
|
||||
* Makefile.am (SUBDIRS), configure.in: Added views stuff.
|
||||
|
||||
18
configure.in
18
configure.in
@ -157,10 +157,28 @@ if test x$enable_ldap = xyes; then
|
||||
AC_CHECK_LIB(ldap, ldap_open, LDAP_LIBS="-lldap $LDAP_LIBS", ,-llber)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test x$ac_cv_lib_ldap_ldap_open = xyes; then
|
||||
dnl *
|
||||
dnl * check for openldap version 2.x, since 1.x doesn't have the schema stuff
|
||||
dnl *
|
||||
AC_MSG_CHECKING(if openldap is version 2.x)
|
||||
AC_EGREP_CPP(yes,
|
||||
[#include "ldap.h"
|
||||
#if LDAP_VENDOR_VERSION > 20000
|
||||
yes
|
||||
#endif
|
||||
], is_2x=yes, is_2x=no)
|
||||
|
||||
if test x$is_2x = xyes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_LDAP)
|
||||
AC_SUBST(LDAP_LIBS)
|
||||
msg_ldap=Yes
|
||||
else
|
||||
AC_MSG_ERROR(evolution requires OpenLDAP version >= 2)
|
||||
fi
|
||||
else
|
||||
msg_ldap=No
|
||||
enable_ldap=no
|
||||
|
||||
Reference in New Issue
Block a user