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
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