diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-26 15:02:22 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-26 15:02:22 +0000 |
commit | 98792e077bf9c5a721586f4117b381beefc7ba72 (patch) | |
tree | 870acc3d22108c26d46db3f807605abc52bf17d8 | |
parent | 7f782427afc12a529d58f99522b7ea1328902f62 (diff) | |
download | libapr-util-98792e077bf9c5a721586f4117b381beefc7ba72.tar.gz |
Support ldap library names with non-alphanumeric characters, such
as libldap-2.4.so.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@737705 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | build/apu-conf.m4 | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,6 +1,8 @@ -*- coding: utf-8 -*- Changes with APR-util 2.0.0 + *) Support ldap library names with non-alphanumeric characters, such + as libldap-2.4.so. [Jeff Trawick] Changes with APR-util 1.4.0 diff --git a/build/apu-conf.m4 b/build/apu-conf.m4 index 74c07237..976065d4 100644 --- a/build/apu-conf.m4 +++ b/build/apu-conf.m4 @@ -187,8 +187,12 @@ AC_DEFUN([APU_FIND_LDAPLIB], [ if test ${apu_has_ldap} != "1"; then ldaplib=$1 extralib=$2 - unset ac_cv_lib_${ldaplib}_ldap_init - unset ac_cv_lib_${ldaplib}___ldap_init + # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. + changequote(,) + ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" + changequote([,]) + unset ac_cv_lib_${ldaplib_cache_id}_ldap_init + unset ac_cv_lib_${ldaplib_cache_id}___ldap_init AC_CHECK_LIB(${ldaplib}, ldap_init, [ LDADD_ldap="-l${ldaplib} ${extralib}" |