From: Stefan Fritsch Date: Sun, 7 Oct 2012 08:56:45 +0000 (+0000) Subject: Fix usage of MOD_* variables for MPM modules X-Git-Tag: 2.5.0-alpha~6227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67fde08ec75c0228b635e35421339333653a7c2c;p=apache Fix usage of MOD_* variables for MPM modules r1385216 broke building of mpm event with serf support. To fix, * introduce APACHE_MPMPATH_INIT/FINISH similar to APACHE_MODPATH_INIT/FINISH to create modules.mk and add MOD_* vars to it. * change APACHE_MPM_MODULE to only append to modules.mk, not overwrite * add APACHE_MPMPATH_INIT/FINISH to all MPMs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1395252 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acinclude.m4 b/acinclude.m4 index 444f385e19..86d2e08c51 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -217,6 +217,27 @@ EOF fi fi ])dnl +dnl Same as APACHE_MODPATH_INIT/FINISH but for MPMs +dnl APACHE_MPMPATH_INIT(mpmpath) +AC_DEFUN(APACHE_MPMPATH_INIT,[ + current_dir=$1 + modpath_current=server/mpm/$1 + modpath_static= + modpath_shared= + for var in mod_buildvars; do + eval MOD_$var= + done + test -d $1 || $srcdir/build/mkdir.sh $modpath_current + > $modpath_current/modules.mk +])dnl +dnl +AC_DEFUN(APACHE_MPMPATH_FINISH,[ + for var in mod_buildvars; do + if eval val=\"\$MOD_$var\"; test -n "$val"; then + echo "MOD_$var = $val" >> $modpath_current/modules.mk + fi + done +])dnl dnl dnl APACHE_MPM_MODULE(name[, shared[, objects[, config[, path[, libs]]]]]) @@ -253,7 +274,7 @@ AC_DEFUN(APACHE_MPM_MODULE,[ if test -z "$2"; then APR_ADDTO(AP_LIBS, [$6]) libname="lib$1.la" - cat >$mpmpath/modules.mk<>$mpmpath/modules.mk<$mpmpath/modules.mk<>$mpmpath/modules.mk<