Mod Cplusplus CVS committal
Author : johnksterling
Module : mod_cplusplus
Dir : mod_cplusplus
Modified Files:
Makefile.am configure.in
Log Message:
support apxs - this will definitely work right now if all include files are declared byapxs. Im not sure if there are installations where apr.h is not put in INCLUDEDIR - if there are systems like that I would have to make more changes.
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/Makefile.am,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- Makefile.am 27 Aug 2004 02:58:08 -0000 1.8
+++ Makefile.am 26 Nov 2004 18:39:26 -0000 1.9
@@ -6,8 +6,8 @@
install:
@echo ...installing module.......
- cp src/.libs/libmod_cplusplus.@SHLIB_EXT@ @HTTPD_DIR@/modules
+ cp src/.libs/libmod_cplusplus.@SHLIB_EXT@ @MODULES_DIR@
@echo ...checking config file......
- if ! grep cplusplus @HTTPD_DIR@/conf/httpd.conf; then echo ...updating config file....;echo 'LoadModule cplusplus_module @HTTPD_DIR@/modules/libmod_cplusplus.@SHLIB_EXT@' >> @HTTPD_DIR@/conf/httpd.conf ; else echo ***config file already contains modcplusplus***; fi
+ if ! grep cplusplus @CONF_DIR@/httpd.conf; then echo ...updating config file....;echo 'LoadModule cplusplus_module @MODULES_DIR@/libmod_cplusplus.@SHLIB_EXT@' >> @CONF_DIR@/httpd.conf ; else echo ***config file already contains modcplusplus***; fi
@echo ...install complete...
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/configure.in,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- configure.in 18 May 2004 02:36:39 -0000 1.19
+++ configure.in 26 Nov 2004 18:39:26 -0000 1.20
@@ -69,13 +69,37 @@
fi
fi
],)
+ AC_MSG_RESULT(found $HTTPD_DIR)
+],)
+AC_MSG_CHECKING(for apxs)
+AC_ARG_WITH(apxs, [ --with-apxs Specify path to apxs ],
+[
+ if test -f $withval; then
+ inc=`$withval -q INCLUDEDIR`
+ HTTPD_DIR=`$withval -q PREFIX`
+ CONF_DIR=`$withval -q SYSCONFDIR`
+ MODULES_DIR=`$withval -q LIBEXECDIR`
+ APXS=$withval
+ CPPFLAGS="$CPPFLAGS -I$inc"
+ AC_MSG_RESULT(found $withval)
+ else
+ AC_MSG_RESULT($withval not found)
+ withval="$withval/apxs"
+ if test -f $withval ; then
+ AC_MSG_RESULT(found $withval)
+ HTTPD_DIR=`$withval -q PREFIX`
+ CONF_DIR=`$withval -q SYSCONFDIR`
+ MODULES_DIR=`$withval -q LIBEXECDIR`
+ APXS=$withval
+ inc=`$withval -q INCLUDEDIR`
+ CPPFLAGS="$CPPFLAGS -I$inc"
+ else
+ AC_MSG_ERROR($withval not found. APXS installation cannot be located!)
+ fi
+ fi
+],)
-AC_MSG_RESULT(found $HTTPD_DIR)
-],[
- AC_MSG_ERROR(--with-httpd not given and couldn't find a default distrobution)
-])
-
AC_CHECK_LIB(stdc++, __gxx_personality_v0, LIB_STDCPP="-lstdc++")
if test "$LIB_STDCPP" == "" ; then
CPPFLAGS="$CPPFLAGS -DNO_STDCPP"
@@ -84,7 +108,9 @@
CPPFLAGS="$CPPFLAGS -g -I$CPLUSPLUS_BUILDDIR/include"
AC_SUBST(CPLUSPLUS_BUILDDIR)
-AC_SUBST(HTTPD_DIR)
+AC_SUBST(MODULES_DIR)
+AC_SUBST(CONF_DIR)
+AC_SUBST(APXS)
AC_SUBST(CFLAGS)
AC_SUBST(LIB_STDCPP)
|