components/apache2/patches/openldap.patch
changeset 1040 a4dc3ecab65b
child 1400 4e54fb56a064
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/apache2/patches/openldap.patch	Tue Nov 06 13:28:59 2012 -0800
@@ -0,0 +1,33 @@
+--- modules/aaa/config.m4	Mon Jun  9 09:04:46 2008
++++ modules/aaa/config.m4	Thu Nov 10 07:04:40 2011
+@@ -35,7 +35,7 @@
+ dnl LDAP authentication module. This module has both the authn and authz
+ dnl modules in one, so as to share the LDAP server config directives.
+ APACHE_MODULE(authnz_ldap, LDAP based authentication, , , no, [
+-  MOD_AUTHNZ_LDAP_LDADD="`$apu_config --ldap-libs`" || MOD_AUTHNZ_LDAP_LDADD=""
++  MOD_AUTHNZ_LDAP_LDADD="-lldap_r-2.4  -llber"
+   AC_SUBST(MOD_AUTHNZ_LDAP_LDADD)
+ ])
+ 
+--- modules/ldap/config.m4	Mon Jun  9 09:04:46 2008
++++ modules/ldap/config.m4	Thu Nov 10 07:02:52 2011
+@@ -5,7 +5,7 @@
+ 
+ ldap_objects="util_ldap.lo util_ldap_cache.lo util_ldap_cache_mgr.lo"
+ APACHE_MODULE(ldap, LDAP caching and connection pooling services, $ldap_objects, , no, [
+-  MOD_LDAP_LDADD="`$apu_config --ldap-libs`" || MOD_LDAP_LDADD=""
++  MOD_LDAP_LDADD="-lldap_r-2.4  -llber"
+   AC_SUBST(MOD_LDAP_LDADD)
+ ])
+ 
+--- configure.in	Sat Apr 16 12:09:47 2011
++++ configure.in	Thu Nov 10 07:18:54 2011
+@@ -144,7 +144,7 @@
+ 
+ APR_ADDTO(LDFLAGS, `$apu_config --ldflags`)
+ APU_BINDIR=`$apu_config --bindir`
+-APU_INCLUDEDIR=`$apu_config --includedir`
++APU_INCLUDEDIR="`$apu_config --includedir` -I/usr/include/openldap"
+ APU_VERSION=`$apu_config --version`
+ APU_CONFIG="$APU_BINDIR/apu-`echo ${APU_VERSION} | sed 's,\..*,,'`-config"
+