1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.2 2001/05/20 01:21:20 jongfoster Exp $
5 dnl Written by and Copyright (C) 2001 the SourceForge
6 dnl IJBSWA team. http://ijbswa.sourceforge.net
8 dnl Based on the Internet Junkbuster originally written
9 dnl by and Copyright (C) 1997 Anonymous Coders and
10 dnl Junkbusters Corporation. http://www.junkbusters.com
12 dnl This program is free software; you can redistribute it
13 dnl and/or modify it under the terms of the GNU General
14 dnl Public License as published by the Free Software
15 dnl Foundation; either version 2 of the License, or (at
16 dnl your option) any later version.
18 dnl This program is distributed in the hope that it will
19 dnl be useful, but WITHOUT ANY WARRANTY; without even the
20 dnl implied warranty of MERCHANTABILITY or FITNESS FOR A
21 dnl PARTICULAR PURPOSE. See the GNU General Public
22 dnl License for more details.
24 dnl The GNU General Public License should be included with
25 dnl this file. If not, you can view it at
26 dnl http://www.gnu.org/copyleft/gpl.html
27 dnl or write to the Free Software Foundation, Inc., 59
28 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 dnl $Log: configure.in,v $
31 dnl Revision 1.2 2001/05/20 01:21:20 jongfoster
32 dnl Version 2.9.4 checkin.
33 dnl - Merged popupfile and cookiefile, and added control over PCRS
34 dnl filtering, in new "permissionsfile".
35 dnl - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
36 dnl file error you now get a message box (in the Win32 GUI) rather
37 dnl than the program exiting with no explanation.
38 dnl - Made killpopup use the PCRS MIME-type checking and HTTP-header
40 dnl - Removed tabs from "config"
41 dnl - Moved duplicated url parsing code in "loaders.c" to a new funcition.
42 dnl - Bumped up version number.
44 dnl Revision 1.1.1.1 2001/05/15 13:58:50 oes
45 dnl Initial import of version 2.9.3 source tree
49 AC_CONFIG_HEADER(config.h)
55 AC_SUBST(VERSION_MAJOR)
56 AC_SUBST(VERSION_MINOR)
57 AC_SUBST(VERSION_POINT)
59 AC_DEFINE_UNQUOTED(VERSION_MAJOR,${VERSION_MAJOR})
60 AC_DEFINE_UNQUOTED(VERSION_MINOR,${VERSION_MINOR})
61 AC_DEFINE_UNQUOTED(VERSION_POINT,${VERSION_POINT})
62 AC_DEFINE_UNQUOTED(VERSION,"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}")
64 dnl Checks for programs.
71 dnl RANLIB is for PCRE:
79 dnl Checks for libraries.
80 dnl AC_CHECK_LIB(pcre, pcre_compile)
81 dnl AC_CHECK_LIB(pcreposix, regcomp, pcre)
83 dnl Checks for header files.
85 dnl AC_HEADER_SYS_WAIT
86 dnl AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/time.h unistd.h)
87 dnl limits.h is for PCRE:
88 dnl AC_CHECK_HEADERS(limits.h)
90 dnl Checks for typedefs, structures, and compiler characteristics.
94 dnl Checks for library functions.
96 dnl AC_CHECK_FUNC(strstr)
97 dnl bcopy and memmove are for PCRE
98 AC_CHECK_FUNCS(strerror bcopy memmove)
102 AC_ARG_ENABLE(mingw32,
103 [ --enable-mingw32 Use mingw32 for a Windows GUI],
104 [if test $enableval = yes; then
106 CYGWIN_FLAGS="-mwindows -mno-cygwin"
107 echo "Using mingw32 (Win32 GUI)"
110 if test "$CYGWIN" = "yes"; then
111 CYGWIN_FLAGS="-mno-win32"
112 echo "Using Cygnus (Win32 command line)"
117 [if test "$MINGW32" = "yes"; then
119 CYGWIN_FLAGS="-mwindows -mno-cygwin"
120 echo "Using mingw32 (Win32 GUI)"
123 if test "$CYGWIN" = "yes"; then
124 CYGWIN_FLAGS="-mno-win32"
125 echo "Using Cygnus (Win32 command line)"
132 AC_SUBST(CYGWIN_FLAGS)
135 AC_SUBST(SOLARIS_ONLY)
146 [ --disable-regex Don't allow regular expressions in the blockfile],
147 [if test $enableval = yes; then
153 fi],AC_DEFINE(REGEX))
155 AC_ARG_ENABLE(pcre-regex,
156 [ --disable-pcre-regex Use old, slow GNU Regex instead of PCRE.],
157 [if test $enableval = yes; then
166 AC_SUBST(GNU_REGEX_ONLY)
167 AC_SUBST(PCRE_REGEX_ONLY)
168 AC_SUBST(NO_REGEX_ONLY)
173 AC_ARG_ENABLE(toggle,
174 [ --disable-toggle Don't support temporary disable],
175 [if test $enableval = yes; then
177 fi],AC_DEFINE(TOGGLE))
181 [ --disable-pcrs Don't support arbitrary content modification],
182 [if test $enableval = yes; then
187 fi],[AC_DEFINE(PCRS) AC_DEFINE(DENY_GZIP)])
191 [ --disable-force Don't allow blockfle to be bypassed],
192 [if test $enableval = yes; then
193 AC_DEFINE(FORCE_LOAD)
194 fi],AC_DEFINE(FORCE_LOAD))
196 AC_ARG_ENABLE(fast-redirects,
197 [ --disable-fast-redirects Don't support fast redirects],
198 [if test $enableval = yes; then
199 AC_DEFINE(FAST_REDIRECTS)
200 fi], AC_DEFINE(FAST_REDIRECTS))
202 AC_ARG_ENABLE(killpopup,
203 [ --disable-killpopup Never block popups],
204 [if test $enableval = yes; then
205 AC_DEFINE(KILLPOPUPS)
206 fi],AC_DEFINE(KILLPOPUPS))
209 [ --disable-stats Don't keep statistics],
210 [if test $enableval = yes; then
211 AC_DEFINE(STATISTICS)
212 fi],AC_DEFINE(STATISTICS))
214 AC_ARG_ENABLE(split-proxy-args,
215 [ --disable-split-proxy-args One big show-proxy-args page, not one per file.],
216 [if test $enableval = yes; then
217 AC_DEFINE(SPLIT_PROXY_ARGS)
218 fi],AC_DEFINE(SPLIT_PROXY_ARGS))
220 AC_ARG_ENABLE(webdav,
221 [ --disable-webdav Don't support WebDAV. This option stops MS Outlook
222 Express from accessing HotMail e-mail.],
223 [if test $enableval = yes; then
228 AC_ARG_ENABLE(ie-images,
229 [ --disable-ie-images Don't auto-detect whether a request from MS Internet
230 Explorer is for an image or HTML.],
231 [if test $enableval = yes; then
232 AC_DEFINE(DETECT_MSIE_IMAGES)
234 AC_DEFINE(DETECT_MSIE_IMAGES))
236 AC_ARG_ENABLE(image-list,
237 [ --disable-image-list Don't try to figure out whether a request is for an
238 image or HTML using the imagelist - assume HTML.],
239 [if test $enableval = yes; then
240 AC_DEFINE(USE_IMAGE_LIST)
242 AC_DEFINE(USE_IMAGE_LIST))
244 AC_ARG_ENABLE(acl-files,
245 [ --disable-acl-files Prevents the use of ACL files to control access to
246 the proxy by IP address.],
247 [if test $enableval = yes; then
250 AC_DEFINE(ACL_FILES))
252 AC_ARG_ENABLE(trust-files,
253 [ --disable-trust-files Prevents the use of trust files.],
254 [if test $enableval = yes; then
255 AC_DEFINE(TRUST_FILES)
257 AC_DEFINE(TRUST_FILES))
259 AC_ARG_ENABLE(jar-files,
260 [ --disable-jar-files Prevents the use of jar files to capture cookies.],
261 [if test $enableval = yes; then
264 AC_DEFINE(JAR_FILES))
268 AC_ARG_ENABLE(static-pcre,
269 [ --disable-static-pcre Link dynamically with the pcre and pcreposix
270 libraries. You must build the libraries seperately.],
271 [if test $enableval = no; then
275 AC_SUBST(LIBRARY_PCRE_ONLY)
276 AC_SUBST(STATIC_PCRE_ONLY)