On Fri, Dec 30, 2016 at 3:11 PM, Reindl Harald <[email protected]> wrote:
>
>
> Am 30.12.2016 um 15:06 schrieb Yann Ylavic:
>>
>> On Fri, Dec 30, 2016 at 3:00 PM, Reindl Harald <[email protected]>
>> wrote:
>>>
>>> and --enable-modules= don't work too
>>
>>
>> Doesn't setting --enable-modules=none first help?
>
> see my last post - only partially
>
> normally when i list explicit "this modules shared" and "this modules
> static" there shoul dbe nothing in between
How would the attached patch work for you?
Regards,
Yann.
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 1776076)
+++ acinclude.m4 (working copy)
@@ -302,8 +302,19 @@ dnl
AC_DEFUN([APACHE_MODULE],[
AC_MSG_CHECKING(whether to enable mod_$1)
define([optname],[--]ifelse($5,yes,disable,enable)[-]translit($1,_,-))dnl
- AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),force_$1=$enableval,enable_$1=ifelse($5,,maybe-all,$5))
+ AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),force_$1=$enableval,enable_$1=ifelse($5,,maybe-all,maybe_$5))
undefine([optname])dnl
+ case "$enable_$1" in
+ maybe_*)
+ if test "$module_selection" = "none"; then
+ enable_$1=no
+ else
+ enable_$1=`echo "$enable_$1" | sed 's/^maybe_//g'`
+ fi
+ ;;
+ *)
+ ;;
+ esac
_apmod_extra_msg=""
dnl If the module was not explicitly requested, allow it to disable itself if
dnl its pre-reqs fail.
Index: modules/proxy/config.m4
===================================================================
--- modules/proxy/config.m4 (revision 1776076)
+++ modules/proxy/config.m4 (working copy)
@@ -13,7 +13,7 @@ dnl enabled module is missing its prereqs
save_module_selection=$module_selection
save_module_default=$module_default
if test "$enable_proxy" != "no"; then
- module_selection=most
+ dnl module_selection=most
if test "$enable_proxy" = "shared" -o "$enable_proxy" = "static"; then
module_default=$enable_proxy
fi