apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r737705 - in /apr/apr-util/trunk: CHANGES build/apu-conf.m4
Date Mon, 26 Jan 2009 15:02:23 GMT
Author: trawick
Date: Mon Jan 26 15:02:22 2009
New Revision: 737705

URL: http://svn.apache.org/viewvc?rev=737705&view=rev
Log:
Support ldap library names with non-alphanumeric characters, such
as libldap-2.4.so.

Modified:
    apr/apr-util/trunk/CHANGES
    apr/apr-util/trunk/build/apu-conf.m4

Modified: apr/apr-util/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/CHANGES?rev=737705&r1=737704&r2=737705&view=diff
==============================================================================
--- apr/apr-util/trunk/CHANGES [utf-8] (original)
+++ apr/apr-util/trunk/CHANGES [utf-8] Mon Jan 26 15:02:22 2009
@@ -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
 

Modified: apr/apr-util/trunk/build/apu-conf.m4
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/build/apu-conf.m4?rev=737705&r1=737704&r2=737705&view=diff
==============================================================================
--- apr/apr-util/trunk/build/apu-conf.m4 (original)
+++ apr/apr-util/trunk/build/apu-conf.m4 Mon Jan 26 15:02:22 2009
@@ -187,8 +187,12 @@
   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}"



Mime
View raw message