From a64dd8d8984acb48b7440d4db5ccbf0e490dec53 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Sat, 3 Jan 2009 16:12:55 +0000 Subject: [PATCH] Allow feature test for apr_ssl.h to succeed: Add necessary search paths temporarily to CPPFLAGS. Addition to r730717. When switching to another header, no need to again rename the ap_HAVE_APR_CRYPTO variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731009 13f79535-47bb-0310-9956-ffa450edef68 --- modules/session/config.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/session/config.m4 b/modules/session/config.m4 index 90e2d1fda9..4721831a22 100644 --- a/modules/session/config.m4 +++ b/modules/session/config.m4 @@ -18,8 +18,11 @@ dnl APACHE_MODULE(session, session module, , , most) APACHE_MODULE(session_cookie, session cookie module, , , $session_mods_enable) APACHE_MODULE(session_crypto, session crypto module, , , no, [ - AC_CHECK_HEADERS(apr_ssl.h, [ap_HAVE_APR_SSL_H="yes"], [ap_HAVE_APR_SSL_H="no"]) - if test $ap_HAVE_APR_SSL_H = "no"; then + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I$APR_INCLUDEDIR -I$APU_INCLUDEDIR" + 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 AC_MSG_WARN([Your APR does not include SSL/EVP support.]) enable_session_crypto="no" fi -- 2.50.1