diff options
author | Stefan Fritsch <sf@apache.org> | 2011-02-18 22:27:12 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-02-18 22:27:12 +0100 |
commit | e74c4e4cdc8a960d2ce0af2aab53d40c77a2870f (patch) | |
tree | 19ed0aca91184d0e758452cde86841de6264ea92 /modules | |
parent | Expose "new" ap_parse_form_data() function instead of requiring (diff) | |
download | apache2-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.m4 | 6 |
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.]) |