1dnl modules enabled in this directory by default 2 3dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]]) 4 5APACHE_MODPATH_INIT(filters) 6 7APACHE_MODULE(reqtimeout, Limit time waiting for request from client, , , most) 8APACHE_MODULE(ext_filter, external filter module, , , most) 9APACHE_MODULE(include, Server Side Includes, , , yes) 10APACHE_MODULE(filter, Smart Filtering, , , yes) 11APACHE_MODULE(substitute, response content rewrite-like filtering, , , most) 12 13if test "$ac_cv_ebcdic" = "yes"; then 14# mod_charset_lite can be very useful on an ebcdic system, 15# so include it by default 16 APACHE_MODULE(charset_lite, character set translation, , , yes) 17else 18 APACHE_MODULE(charset_lite, character set translation, , , no) 19fi 20 21 22APACHE_MODULE(deflate, Deflate transfer encoding support, , , most, [ 23 AC_ARG_WITH(z, APACHE_HELP_STRING(--with-z=DIR,use a specific zlib library), 24 [ 25 if test "x$withval" != "xyes" && test "x$withval" != "x"; then 26 ap_zlib_base="$withval" 27 fi 28 ]) 29 if test "x$ap_zlib_base" = "x"; then 30 AC_MSG_CHECKING([for zlib location]) 31 AC_CACHE_VAL(ap_cv_zlib,[ 32 for dir in /usr/local /usr ; do 33 if test -d $dir && test -f $dir/include/zlib.h; then 34 ap_cv_zlib=$dir 35 break 36 fi 37 done 38 ]) 39 ap_zlib_base=$ap_cv_zlib 40 if test "x$ap_zlib_base" = "x"; then 41 enable_deflate=no 42 AC_MSG_RESULT([not found]) 43 else 44 AC_MSG_RESULT([$ap_zlib_base]) 45 fi 46 fi 47 if test "$enable_deflate" != "no"; then 48 ap_save_includes=$INCLUDES 49 ap_save_ldflags=$LDFLAGS 50 ap_save_cppflags=$CPPFLAGS 51 if test "$ap_zlib_base" != "/usr"; then 52 APR_ADDTO(INCLUDES, [-I${ap_zlib_base}/include]) 53 dnl put in CPPFLAGS temporarily so that AC_TRY_LINK below will work 54 CPPFLAGS="$CPPFLAGS $INCLUDES" 55 APR_ADDTO(LDFLAGS, [-L${ap_zlib_base}/lib]) 56 if test "x$ap_platform_runtime_link_flag" != "x"; then 57 APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag${ap_zlib_base}/lib]) 58 fi 59 fi 60 APR_ADDTO(LIBS, [-lz]) 61 AC_MSG_CHECKING([for zlib library]) 62 AC_TRY_LINK([#include <zlib.h>], [int i = Z_OK;], 63 [AC_MSG_RESULT(found) 64 APR_SETVAR(MOD_DEFLATE_LDADD, [-lz])], 65 [AC_MSG_RESULT(not found) 66 enable_deflate=no 67 INCLUDES=$ap_save_includes 68 LDFLAGS=$ap_save_ldflags]) 69 APR_REMOVEFROM(LIBS, [-lz]) 70 CPPFLAGS=$ap_save_cppflags 71 fi 72]) 73 74APACHE_MODPATH_FINISH 75