summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2011-11-07 23:59:51 +0100
committerJeff Trawick <trawick@apache.org>2011-11-07 23:59:51 +0100
commit3097e8585d42a3dd4a411db9ca88e4acf2646c4b (patch)
treef41943ffd84ddffb19e49f4086bce286ff87ca9c
parentMore error checking for ap_pregsub (diff)
downloadapache2-3097e8585d42a3dd4a411db9ca88e4acf2646c4b.tar.xz
apache2-3097e8585d42a3dd4a411db9ca88e4acf2646c4b.zip
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
-rw-r--r--modules/session/config.m420
1 files 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 <apr_crypto.h>],[
#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])