~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to modules/filters/config.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

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