Index: ./Makefile.in
===================================================================
--- ./Makefile.in
+++ ./Makefile.in	Thu Jun 20 20:32:34 2002
@@ -51,6 +51,7 @@
 
 APACHE_INCLUDES = @APACHE_INCLUDES@
 APACHE_TARGET = @APACHE_TARGET@
+APACHE_LIBEXECDIR = @APACHE_LIBEXECDIR@
 
 SWIG_PY_INCLUDES = @SWIG_PY_INCLUDES@
 
Index: ./ac-helpers/svn-apache.m4
===================================================================
--- ./ac-helpers/svn-apache.m4
+++ ./ac-helpers/svn-apache.m4	Thu Jun 20 20:32:34 2002
@@ -85,6 +85,7 @@
 
     APXS_CC="`$APXS -q CC`"
     APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE"
+    APACHE_LIBEXECDIR="`$APXS -q libexecdir`"
 
     INSTALL_APACHE_RULE=install-mods-shared
 
@@ -104,6 +105,7 @@
 fi
 AC_SUBST(APACHE_TARGET)
 AC_SUBST(APACHE_INCLUDES)
+AC_SUBST(APACHE_LIBEXECDIR)
 AC_SUBST(BUILD_APACHE_RULE)
 AC_SUBST(INSTALL_APACHE_RULE)
 
Index: ./build/gen_base.py
===================================================================
--- ./build/gen_base.py
+++ ./build/gen_base.py	Thu Jun 20 20:33:11 2002
@@ -191,6 +191,9 @@
       custom = self.parser.get(target, 'custom')
       if custom == 'apache-mod':
         # special build, needing Apache includes
+        # also must tweak libtool to install into Apache module dir
+        self.ofile.write('# convince libtool to install into Apache module dir\n')
+        self.ofile.write('%s: libdir=$(APACHE_LIBEXECDIR)\n\n' % (tpath))
         self.ofile.write('# build these special -- use APACHE_INCLUDES\n')
         for src in target_ob.sources:
           if src[-2:] == '.c':

