summaryrefslogtreecommitdiffstats
path: root/daemons/configure.ac
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-12-03 15:02:29 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-06 12:23:09 -0500
commit37f48c0019c64f20bfc24b021442b643eaf86aab (patch)
tree416ce19e54ddc2e1efa88beac4978124676c7d85 /daemons/configure.ac
parentfee9fae941bd747d7f2f22f2b95626107b11049f (diff)
downloadfreeipa-37f48c0019c64f20bfc24b021442b643eaf86aab.tar.gz
freeipa-37f48c0019c64f20bfc24b021442b643eaf86aab.tar.xz
freeipa-37f48c0019c64f20bfc24b021442b643eaf86aab.zip
Make use of mozldap vs openldap for plugins selectable
Diffstat (limited to 'daemons/configure.ac')
-rw-r--r--daemons/configure.ac21
1 files changed, 17 insertions, 4 deletions
diff --git a/daemons/configure.ac b/daemons/configure.ac
index d959f987a..221a63a7f 100644
--- a/daemons/configure.ac
+++ b/daemons/configure.ac
@@ -137,11 +137,9 @@ fi
AC_SUBST(KRB5_LIBS)
dnl ---------------------------------------------------------------------------
-dnl - Check for Mozilla LDAP *and* OpenLDAP SDK
+dnl - Check for Mozilla LDAP and OpenLDAP SDK
dnl ---------------------------------------------------------------------------
-dnl The mozldap libraries are always needed because ipa-slapi-plugins/dna/
-dnl will not build against OpenLDAP.
SAVE_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$NSPR4 $NSS3"
AC_CHECK_HEADER(svrcore.h)
@@ -193,6 +191,21 @@ AC_SUBST(OPENLDAP_LIBS)
OPENLDAP_CFLAGS="${OPENLDAP_CFLAGS} -DWITH_OPENLDAP"
AC_SUBST(OPENLDAP_CFLAGS)
+AC_ARG_WITH([openldap],
+ [AS_HELP_STRING([--with-openldap],
+ [compile plugins with openldap instead of mozldap])],
+ [], [])
+
+if test "x$with_openldap" == xyes; then
+ LDAP_CFLAGS="${OPENLDAP_CFLAGS} $NSPR4 $NSS3 -DUSE_OPENLDAP"
+ LDAP_LIBS="${OPENLDAP_LIBS}"
+else
+ LDAP_CFLAGS="${MOZLDAP_CFLAGS}"
+ LDAP_LIBS="${MOZLDAP_LIBS}"
+fi
+AC_SUBST(LDAP_CFLAGS)
+AC_SUBST(LDAP_LIBS)
+
dnl ---------------------------------------------------------------------------
dnl - Check for OpenSSL Crypto library
dnl ---------------------------------------------------------------------------
@@ -312,7 +325,7 @@ echo "
source code location: ${srcdir}
compiler: ${CC}
cflags: ${CFLAGS}
- LDAP libs: ${OPENLDAP_LIBS}
+ LDAP libs: ${LDAP_LIBS}
KRB5 libs: ${KRB5_LIBS}
OpenSSL libs: ${SSL_LIBS}
Maintainer mode: ${USE_MAINTAINER_MODE}