From 0e4897e84733a77d1b18da9d41723e9d9d9c5a33 Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Sat, 18 May 2002 05:11:10 +0000 Subject: [PATCH] Fail in a more sensible way when APR-util is missing its LDAP support git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95165 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_auth_ldap.c | 4 ++++ modules/experimental/util_ldap.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/experimental/mod_auth_ldap.c b/modules/experimental/mod_auth_ldap.c index 54bc07ac80..f3fb12ad3c 100644 --- a/modules/experimental/mod_auth_ldap.c +++ b/modules/experimental/mod_auth_ldap.c @@ -78,6 +78,10 @@ #include "http_request.h" #include "util_ldap.h" +#ifndef APU_HAS_LDAP +#error mod_auth_ldap requires APR-util to have LDAP support built in +#endif + /* per directory configuration */ typedef struct { apr_pool_t *pool; /* Pool that this config is allocated from */ diff --git a/modules/experimental/util_ldap.c b/modules/experimental/util_ldap.c index 5ff3dd1eae..c9de56c6be 100644 --- a/modules/experimental/util_ldap.c +++ b/modules/experimental/util_ldap.c @@ -61,9 +61,6 @@ */ #include - -#ifdef APU_HAS_LDAP - #include #include "ap_config.h" @@ -80,6 +77,10 @@ #include #endif +#ifndef APU_HAS_LDAP +#error mod_ldap requires APR-util to have LDAP support built in +#endif + module AP_MODULE_DECLARE_DATA ldap_module; int util_ldap_handler(request_rec *r); @@ -906,8 +907,6 @@ start_over: return LDAP_SUCCESS; } -#endif /* APU_HAS_LDAP */ - /* ---------------------------------------- */ -- 2.40.0