]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Gets VPATH builds working again. The problem was that apr.h is generated
authorAaron Bannert <aaron@apache.org>
Wed, 17 Oct 2001 21:34:29 +0000 (21:34 +0000)
committerAaron Bannert <aaron@apache.org>
Wed, 17 Oct 2001 21:34:29 +0000 (21:34 +0000)
by autoconf and then placed in the builddir, not the srcdir (which we
didn't notice until we tried to do VPATH). When cpp couldn't find apr.h
we would decide not to build mod_so, which is kinda bad.

Now we include both paths when we test for APR_HAS_DSO and everyone is happy.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91537 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/config9.m4

index 2aa86478457c2bdb161c58331b12d01b0637b7ff..d7f07c5f01f3f51f0e36ab1c0f25dc2c8591e1a4 100644 (file)
@@ -18,7 +18,7 @@ APACHE_MODULE(rewrite, regex URL translation, , , most, [
 ])
 
 ap_old_cppflags=$CPPFLAGS
-CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include"
+CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include -I$abs_builddir/srclib/apr/include"
 AC_TRY_COMPILE([#include <apr.h>], 
 [#if !APR_HAS_DSO
 #error You need APR DSO support to use mod_so.