www-servers/apache-2.2.6-r1 is always compiled with
maintainer-mode/exception-hook options even though I do not have 'debug' in
USE flag.
Reproducible: Always
It seems that --disable-exception-hook and --disbale-maintainer-mode does not
work as expect. After I patched the configure.in, this problem is fixed.
--- configure.in.orig 2007-07-17 07:48:25.000000000 -0700
+++ configure.in 2007-09-16 15:31:09.000000000 -0700
@@ -456,16 +456,16 @@
[Allow IPv4 connections on IPv6 listening sockets])
fi
-AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable
fatal exception hook),
-[
+AC_ARG_ENABLE(exception-hook,APACHE_HELP_STRING(--enable-exception-hook,Enable
fatal exception hook))
+if test "$enable_exception_hook" = "yes"; then
AC_DEFINE(AP_ENABLE_EXCEPTION_HOOK, 1,
[Allow modules to run hook after a fatal exception])
-])dnl
+fi
-AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn
on debugging and compile time warnings),
-[
+AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn
on debugging and compile time warnings))
+if test "$enable_maintainer_mode" = "yes"; then
APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
-])dnl
+fi
dnl Conditionally enable PIE support for GNU toolchains.
AC_ARG_ENABLE(pie,APACHE_HELP_STRING(--enable-pie,Build httpd as a Position
Independent Executable))