summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2008-04-17 20:04:09 +0000
committerRuediger Pluem <rpluem@apache.org>2008-04-17 20:04:09 +0000
commitb149889544e945dced332dd01eccffda6bdcce8a (patch)
tree99778339d6d0a78a051dcc7462f70464242d1e7f
parentaa2cf4597dd270d47ba96023f23fcfb6172e8e6b (diff)
downloadhttpd-b149889544e945dced332dd01eccffda6bdcce8a.tar.gz
* Fix r649054: Do the correct thing when neither enable nor disable is specfied.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649256 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/session/config.m417
1 files changed, 13 insertions, 4 deletions
diff --git a/modules/session/config.m4 b/modules/session/config.m4
index 0cc556a281..3dede2d809 100644
--- a/modules/session/config.m4
+++ b/modules/session/config.m4
@@ -1,5 +1,14 @@
dnl modules enabled in this directory by default
+if test "$enable_session" = "shared"; then
+ session_mods_enable=shared
+elif test "$enable_proxy" = "yes"; then
+ session_mods_enable=yes
+else
+ session_mods_enable=no
+fi
+
+
dnl Session
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
@@ -10,10 +19,10 @@ dnl Session modules; modules that are capable of storing key value pairs in
dnl various places, such as databases, LDAP, or cookies.
dnl
APACHE_MODULE(session, session module, , , most)
-APACHE_MODULE(session_cookie, session cookie module, , , $enable_session)
-APACHE_MODULE(session_crypto, session crypto module, , , $enable_session)
-APACHE_MODULE(session_dbd, session dbd module, , , $enable_session)
-dnl APACHE_MODULE(session_ldap, session ldap module, , , $enable_session)
+APACHE_MODULE(session_cookie, session cookie module, , , $session_mods_enable)
+APACHE_MODULE(session_crypto, session crypto module, , , $session_mods_enable)
+APACHE_MODULE(session_dbd, session dbd module, , , $session_mods_enable)
+dnl APACHE_MODULE(session_ldap, session ldap module, , , $session_mods_enable)
APACHE_MODPATH_FINISH