]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Report LDAP status at the end of the configuration script
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 6 Nov 2013 07:15:29 +0000 (08:15 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 6 Nov 2013 07:15:29 +0000 (08:15 +0100)
As was already done with gd and pcre, the lack of ldap support is
reported at the end of the configuration script.

configure.in

index d2f910c967d34549da2dfaa848e563da56636304..59f77216fc4fa9d00bb1341569b5b16631dff638 100644 (file)
@@ -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