Using -I$APR_INCLUDEDIR and -I$APU_INCLUDEDIR breaks
for APR 2, because $APU_INCLUDEDIR is empty and a
lonely "-I" doesn't do good for the compiler.
It also breaks for VPATH builds, because then
$APR_INCLUDEDIR contains two paths.
Using $APR_INCLUDES $APU_INCLUDES fixes both problems
and seems to be the way it is done for other modules.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951766
13f79535-47bb-0310-9956-
ffa450edef68
APACHE_MODULE(session_cookie, session cookie module, , , $session_mods_enable)
APACHE_MODULE(session_crypto, session crypto module, , , no, [
saved_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$APR_INCLUDEDIR -I$APU_INCLUDEDIR"
+ CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
AC_CHECK_HEADERS(apr_crypto.h, [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
CPPFLAGS="$saved_CPPFLAGS"
if test $ap_HAVE_APR_CRYPTO = "no"; then