From: Frederic Marchal Date: Wed, 6 Nov 2013 07:15:29 +0000 (+0100) Subject: Report LDAP status at the end of the configuration script X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9d09e791953a83d1370874e39e0fdf652b7ed66;p=thirdparty%2Fsarg.git Report LDAP status at the end of the configuration script As was already done with gd and pcre, the lack of ldap support is reported at the end of the configuration script. --- diff --git a/configure.in b/configure.in index d2f910c..59f7721 100644 --- a/configure.in +++ b/configure.in @@ -109,9 +109,11 @@ if ( test "x$with_ldap" != "xno" ) ; then AC_CHECK_HEADERS([ldap_cdefs.h] [ldap_features.h] [ldap.h],,break) if ( test "x$ac_cv_header_ldap_h" = "xyes" ) ; then AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="") + else + ldap_status="not found" fi else - AC_MSG_NOTICE([Not building with LDAP support as requested on the configuration command line]) + ldap_status="disabled" fi # Build with iconv @@ -382,3 +384,9 @@ if ( test "x$pcre_status" = "xdisabled" ) ; then elif ( test "x$pcre_status" = "xnot found" ) ; then AC_MSG_NOTICE([pcre.h was not found so the regexp won't be available in hostalias]) fi + +if ( test "x$ldap_status" = "xdisabled" ) ; then + AC_MSG_NOTICE([Not building with LDAP support as requested on the configuration command line]) +elif ( test "x$ldap_status" = "xnot found" ) ; then + AC_MSG_NOTICE([ldap header files not found so LDAP is not available to resolve user's names]) +fi