I'm posting this as a a patch because I'm no config and build expert. Please
check to make sure I have done this correctly.

This was required to get the apr-util code to configure properly on Linux
using the latest open-ldap libs and the IBM ldap libs.

The changes to httpd-ldap were required in order to get the httpd-ldap
code to configure when checked out into the httpd-2.0/modules directory.

The httpd-ldap code still doesn't compile clean, due to the lock, shm, and
rmm changes that occurred recently. I'm working on that. I'll have code
for that soon.

-- 
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it.  Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein


A new file httpd-ldap/ldap-aaa/Makefile.in containing the following...

include $(top_srcdir)/build/special.mk





Index: httpd-2.0/srclib/apr-util/build/apu-conf.m4
===================================================================
RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
retrieving revision 1.29
diff -u -r1.29 apu-conf.m4
--- httpd-2.0/srclib/apr-util/build/apu-conf.m4 19 Jan 2002 05:03:57 -0000      1.29
+++ httpd-2.0/srclib/apr-util/build/apu-conf.m4 7 Feb 2002 18:37:08 -0000
@@ -603,6 +603,9 @@
        APU_FIND_LDAPLIB("ldapssl30")
        APU_FIND_LDAPLIB("ldapssl20")
        APU_FIND_LDAPLIB("ldap", "-llber")
+      APU_FIND_LDAPLIB("ldap", "-llber -lresolv")
+      APU_FIND_LDAPLIB("ldap", "-ldl -lpthread")
+
      else
        APU_FIND_LDAPLIB($LDAPLIB)
      fi

Index: httpd-2.0/modules/httpd-ldap/ldap-aaa/config.m4
===================================================================
RCS file: /home/cvspublic/httpd-ldap/ldap-aaa/config.m4,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config.m4
--- httpd-2.0/modules/httpd-ldap/ldap-aaa/config.m4     16 Oct 2001 21:29:08 -0000     
 1.1.1.1
+++ httpd-2.0/modules/httpd-ldap/ldap-aaa/config.m4     7 Feb 2002 18:37:00 -0000
@@ -2,7 +2,7 @@

  dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])

-APACHE_MODPATH_INIT(ldap-aaa)
+APACHE_MODPATH_INIT(httpd-ldap/ldap-aaa)

  APACHE_MODULE(auth_ldap, LDAP based authentication, , , no)

Index: httpd-2.0/modules/httpd-ldap/ldap-cache/config2.m4
===================================================================
RCS file: /home/cvspublic/httpd-ldap/ldap-cache/config2.m4,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 config2.m4
--- httpd-2.0/modules/httpd-ldap/ldap-cache/config2.m4  16 Oct 2001 21:29:08 -0000     
 1.1.1.1
+++ httpd-2.0/modules/httpd-ldap/ldap-cache/config2.m4  7 Feb 2002 18:37:01 -0000
@@ -1,6 +1,6 @@
  dnl modules enabled in this directory by default

-APACHE_MODPATH_INIT(ldap-cache)
+APACHE_MODPATH_INIT(httpd-ldap/ldap-cache)

  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)


Reply via email to