From: Joe Orton Date: Fri, 13 Aug 2004 12:35:47 +0000 (+0000) Subject: * configure.in: Ensure that apr and apr-util exported include X-Git-Tag: STRIKER_2_1_0_RC1~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dcd1d7164bda823e10ccdf16dab492a1f9be6c7;p=apache * configure.in: Ensure that apr and apr-util exported include directories are later than local source directories in INCLUDES. PR: 18959 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104647 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 3a6988d685..2b4e701520 100644 --- a/configure.in +++ b/configure.in @@ -81,7 +81,6 @@ APR_SETIFNULL(CPP, `$apr_config --cpp`) APR_ADDTO(CFLAGS, `$apr_config --cflags`) APR_ADDTO(CPPFLAGS, `$apr_config --cppflags`) APR_ADDTO(LDFLAGS, `$apr_config --ldflags`) -APR_ADDTO(INCLUDES, `$apr_config --includes`) SHLIBPATH_VAR=`$apr_config --shlib-path-var` APR_BINDIR=`$apr_config --bindir` APR_INCLUDEDIR=`$apr_config --includedir` @@ -106,7 +105,6 @@ if test "$apu_found" = "reconfig"; then fi APR_ADDTO(LDFLAGS, `$apu_config --ldflags`) -APR_ADDTO(INCLUDES, `$apu_config --includes`) APU_BINDIR=`$apu_config --bindir` APU_INCLUDEDIR=`$apu_config --includedir` APU_VERSION=`$apu_config --version` @@ -140,6 +138,12 @@ fi APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_SUBDIR_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/filters -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/modules/generators -I\$(top_srcdir)/modules/mappers]) +# apr/apr-util --includes may pick up system paths for dependent +# libraries, so ensure these are later in INCLUDES than local source +# directories. +APR_ADDTO(INCLUDES, `$apr_config --includes`) +APR_ADDTO(INCLUDES, `$apu_config --includes`) + echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}" case $host in