From: Rainer Jung Date: Sat, 5 Jun 2010 20:58:43 +0000 (+0000) Subject: Fix broken mod_session_crypto build. X-Git-Tag: 2.3.6~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2549793119418482825c0e0f33089daed37b07e;p=apache Fix broken mod_session_crypto build. 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 --- diff --git a/modules/session/config.m4 b/modules/session/config.m4 index 75d6a5f4c5..0a7d5420ab 100644 --- a/modules/session/config.m4 +++ b/modules/session/config.m4 @@ -19,7 +19,7 @@ APACHE_MODULE(session, session module, , , most) 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