mirror of
https://github.com/apache/httpd.git
synced 2025-11-06 16:49:32 +03:00
information that will be useful in deciding whether to enable them or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029814 13f79535-47bb-0310-9956-ffa450edef68
74 lines
2.1 KiB
Plaintext
74 lines
2.1 KiB
Plaintext
dnl modules enabled in this directory by default
|
|
|
|
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
|
|
|
|
APACHE_MODPATH_INIT(cache)
|
|
|
|
APACHE_MODULE(file_cache, File cache, , , most)
|
|
|
|
dnl # list of object files for mod_cache
|
|
cache_objs="dnl
|
|
mod_cache.lo dnl
|
|
cache_storage.lo dnl
|
|
cache_util.lo dnl
|
|
"
|
|
disk_cache_objs="mod_disk_cache.lo"
|
|
|
|
case "$host" in
|
|
*os2*)
|
|
# OS/2 DLLs must resolve all symbols at build time
|
|
# and we need some from main cache module
|
|
disk_cache_objs="$disk_cache_objs mod_cache.la"
|
|
;;
|
|
esac
|
|
|
|
APACHE_MODULE(cache, dynamic file caching. At least one storage management module (e.g. mod_disk_cache) is also necessary., $cache_objs, , most)
|
|
APACHE_MODULE(disk_cache, disk caching module, $disk_cache_objs, , most)
|
|
|
|
AC_DEFUN([CHECK_DISTCACHE], [
|
|
AC_CHECK_HEADER(
|
|
[distcache/dc_client.h],
|
|
[have_distcache=yes],
|
|
[have_distcache=no])
|
|
if test "$have_distcache" = "yes"; then
|
|
AC_MSG_CHECKING(for Distcache version)
|
|
AC_TRY_COMPILE(
|
|
[#include <distcache/dc_client.h>],
|
|
[#if DISTCACHE_CLIENT_API != 0x0001
|
|
#error "distcache API version is unrecognised"
|
|
#endif],
|
|
[],
|
|
[have_distcache=no])
|
|
AC_MSG_RESULT($have_distcache)
|
|
fi
|
|
if test "$have_distcache" = "yes"; then
|
|
AC_MSG_CHECKING(for Distcache libraries)
|
|
save_libs=$LIBS
|
|
LIBS="$LIBS -ldistcache -lnal"
|
|
AC_TRY_LINK(
|
|
[#include <distcache/dc_client.h>],
|
|
[DC_CTX *foo = DC_CTX_new((const char *)0,0);],
|
|
[],
|
|
[have_distcache=no])
|
|
LIBS=$save_libs
|
|
AC_MSG_RESULT($have_distcache)
|
|
fi
|
|
if test "$have_distcache" = "yes"; then
|
|
APR_ADDTO(MOD_SOCACHE_LDADD, [-ldistcache -lnal])
|
|
AC_DEFINE(HAVE_DISTCACHE, 1, [Define if distcache support is enabled])
|
|
else
|
|
enable_socache_dc=no
|
|
fi
|
|
])
|
|
|
|
APACHE_MODULE(socache_shmcb, shmcb small object cache provider, , , most)
|
|
APACHE_MODULE(socache_dbm, dbm small object cache provider, , , most)
|
|
APACHE_MODULE(socache_memcache, memcache small object cache provider, , , most)
|
|
APACHE_MODULE(socache_dc, distcache small object cache provider, , , no, [
|
|
CHECK_DISTCACHE
|
|
])
|
|
|
|
APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
|
|
|
|
APACHE_MODPATH_FINISH
|