X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=configure.in;h=583ede89b0fa43c758e8371437ece371bf944da6;hp=b55b8eca8d78b1e9f7e2a4dcfd51a1b0d9764ef8;hb=18cdf8583164db8b02d1f2664603ce64ef291f07;hpb=0c8749178b9f13a030910f5fae2f68285cf130a7 diff --git a/configure.in b/configure.in index b55b8eca..583ede89 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.156 2011/05/27 11:37:45 fabiankeil Exp $ +dnl $Id: configure.in,v 1.157 2011/05/27 11:37:57 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2010 the dnl Privoxy team. http://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.156 $) +AC_REVISION($Revision: 1.157 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -935,6 +935,19 @@ if test $enableval2 = yes; then fi fi +AC_ARG_ENABLE(compression, +[ --enable-compression Allow Privoxy to compress buffered content if the client supports it. Requires zlib support.], +[enableval2=$enableval], +[enableval2=no]) +if test $enableval2 = yes; then + if test $have_zlib = "yes"; then + echo Enabling compression support. + AC_DEFINE(FEATURE_COMPRESSION,1,[Define to 1 to use compression through the zlib library.]) + else + AC_MSG_WARN([No zlib found. Privoxy will not be able to (re-)compressed buffered content.]) + fi +fi + # If we have libpcre and either we also have pcreposix or # we don't need pcreposix, then link pcre dynamically; else