]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Allow feature test for apr_ssl.h to succeed:
authorRainer Jung <rjung@apache.org>
Sat, 3 Jan 2009 16:12:55 +0000 (16:12 +0000)
committerRainer Jung <rjung@apache.org>
Sat, 3 Jan 2009 16:12:55 +0000 (16:12 +0000)
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

index 90e2d1fda98866780f355188c83243770f98737f..4721831a22e7c3fc4ef6465ac6b9186fda1dd39e 100644 (file)
@@ -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