summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-02-18 22:27:12 +0100
committerStefan Fritsch <sf@apache.org>2011-02-18 22:27:12 +0100
commite74c4e4cdc8a960d2ce0af2aab53d40c77a2870f (patch)
tree19ed0aca91184d0e758452cde86841de6264ea92 /modules
parentExpose "new" ap_parse_form_data() function instead of requiring (diff)
downloadapache2-e74c4e4cdc8a960d2ce0af2aab53d40c77a2870f.tar.xz
apache2-e74c4e4cdc8a960d2ce0af2aab53d40c77a2870f.zip
Actually check for APU_HAVE_CRYPTO at configure time. This fixes a compile
error with apr 2 if crypto is disabled. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1072155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/session/config.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/session/config.m4 b/modules/session/config.m4
index 0647299d4e..bf92a02b7a 100644
--- a/modules/session/config.m4
+++ b/modules/session/config.m4
@@ -34,7 +34,11 @@ APACHE_MODULE(session_cookie, session cookie module, $session_cookie_objects, ,
APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , no, [
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
- AC_CHECK_HEADERS(apr_crypto.h, [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
+ AC_TRY_COMPILE([#include <apr_crypto.h>],[
+#if APU_HAVE_CRYPTO == 0
+#error no crypto support
+#endif
+], [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.])