From 3097e8585d42a3dd4a411db9ca88e4acf2646c4b Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 7 Nov 2011 22:59:51 +0000 Subject: [PATCH] if mod_session_crypto prereq isn't available, don't bail if the module was enabled implicitly git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198989 13f79535-47bb-0310-9956-ffa450edef68 --- modules/session/config.m4 | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/modules/session/config.m4 b/modules/session/config.m4 index 606516b669..1f6f364eba 100644 --- a/modules/session/config.m4 +++ b/modules/session/config.m4 @@ -31,22 +31,32 @@ esac APACHE_MODULE(session, session module, , , most) APACHE_MODULE(session_cookie, session cookie module, $session_cookie_objects, , $session_mods_enable) -APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , $session_mods_enable, [ + +if test "$enable_session_crypto" != ""; then + session_mods_enable_crypto=$enable_session_crypto +else + session_mods_enable_crypto=$session_mods_enable +fi +if test "$session_mods_enable_crypto" != "no"; then saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES" AC_TRY_COMPILE([#include ],[ #if APU_HAVE_CRYPTO == 0 #error no crypto support #endif -], [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"]) + ], [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" + if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then + AC_MSG_ERROR([mod_session_crypto cannot be enabled]) + fi + session_mods_enable_crypto="no" fi -]) +fi +APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , $session_mods_enable_crypto) + APACHE_MODULE(session_dbd, session dbd module, $session_dbd_objects, , $session_mods_enable) -dnl APACHE_MODULE(session_ldap, session ldap module, , , $session_mods_enable) APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current]) -- 2.40.0