Commit fdf2bf81 authored by Aaron Bannert's avatar Aaron Bannert
Browse files

Gets VPATH builds working again. The problem was that apr.h is generated

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
parent c3aa1db3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.