From 2d63c22764361b5151f6629ab5c90eb4bf6a68eb Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Wed, 27 Feb 2002 17:06:33 +0000 Subject: [PATCH] Fix --enable-layout to work again. Fix bug where --sysconfdir and --localstatedir were being ignored by APR. Caution: When specifying --enable-layout, common arguments like --prefix, --exec-prefix, etc. will be ignored and the settings from the layout will be used instead. PR: 9124, 9888, 9873, 9885 Submitted by: Thom May , Aaron Bannert Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93598 13f79535-47bb-0310-9956-ffa450edef68 --- acinclude.m4 | 17 ----------------- configure.in | 19 +++++++++++++++---- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 3f7286c16f..abf2fe0aaf 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -325,23 +325,6 @@ AC_DEFUN(APACHE_LAYOUT,[ done changequote([,]) ])dnl -dnl -dnl APACHE_ENABLE_LAYOUT -dnl -AC_DEFUN(APACHE_ENABLE_LAYOUT,[ -AC_ARG_ENABLE(layout, -APACHE_HELP_STRING(--enable-layout=LAYOUT,Default file layout),[ - LAYOUT=$enableval -]) - -if test -z "$LAYOUT"; then - LAYOUT="Apache" -fi -APACHE_LAYOUT($srcdir/config.layout, $LAYOUT) - -AC_MSG_CHECKING(for chosen layout) -AC_MSG_RESULT($layout_name) -]) dnl dnl APACHE_ENABLE_MODULES diff --git a/configure.in b/configure.in index ba60cb4332..f9baec8fbf 100644 --- a/configure.in +++ b/configure.in @@ -18,6 +18,18 @@ sinclude(srclib/apr/build/apr_network.m4) sinclude(srclib/apr/build/apr_threads.m4) sinclude(acinclude.m4) +dnl Get the layout here, so we can pass the required variables to apr +dnl APACHE_ENABLE_LAYOUT +AC_MSG_CHECKING(for chosen layout) +AC_ARG_ENABLE(layout, +APACHE_HELP_STRING(--enable-layout=LAYOUT,Default file layout),[ + LAYOUT=$enableval + APACHE_LAYOUT($srcdir/config.layout, $LAYOUT) + AC_MSG_RESULT($LAYOUT) +], [ + AC_MSG_RESULT([Autoconf Defaults]) +]) + dnl Save user-defined environment settings for later restoration dnl APR_SAVE_THE_ENVIRONMENT(CPPFLAGS) @@ -52,15 +64,15 @@ orig_prefix="$prefix" echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}" -APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix") +APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --bindir=$bindir") echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}" -APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix") +APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --bindir=$bindir") echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}" -APR_SUBDIR_CONFIG(srclib/pcre, "--prefix=$prefix") +APR_SUBDIR_CONFIG(srclib/pcre, "--prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --bindir=$bindir") echo $ac_n "${nl}Configuring Apache httpd ...${nl}" @@ -277,7 +289,6 @@ AC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn o APR_ADDTO(CPPFLAGS, -DAP_DEBUG) ])dnl -APACHE_ENABLE_LAYOUT prefix="$orig_prefix" APACHE_ENABLE_MODULES -- 2.40.0