1e75adbf2ffcb13ae314bd14a3c86585c0dddb99
[privoxy.git] / config.h
1 /* config.h.  Generated automatically by configure.  */
2 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
3 #ifndef _CONFIG_H
4 #define _CONFIG_H
5 /*********************************************************************
6  *
7  * File        :  $Source: /cvsroot/ijbswa/current/config.h,v $
8  *
9  * Purpose     :  This file should be the first thing included in every
10  *                .c file.  (Before even system headers).  It contains 
11  *                #define statements for various features.  It was
12  *                introduced because the compile command line started
13  *                getting ludicrously long with feature defines.
14  *
15  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
16  *                IJBSWA team.  http://ijbswa.sourceforge.net
17  *
18  *                Based on the Internet Junkbuster originally written
19  *                by and Copyright (C) 1997 Anonymous Coders and 
20  *                Junkbusters Corporation.  http://www.junkbusters.com
21  *
22  *                This program is free software; you can redistribute it 
23  *                and/or modify it under the terms of the GNU General
24  *                Public License as published by the Free Software
25  *                Foundation; either version 2 of the License, or (at
26  *                your option) any later version.
27  *
28  *                This program is distributed in the hope that it will
29  *                be useful, but WITHOUT ANY WARRANTY; without even the
30  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
31  *                PARTICULAR PURPOSE.  See the GNU General Public
32  *                License for more details.
33  *
34  *                The GNU General Public License should be included with
35  *                this file.  If not, you can view it at
36  *                http://www.gnu.org/copyleft/gpl.html
37  *                or write to the Free Software Foundation, Inc., 59
38  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
39  *
40  * Revisions   :
41  *    $Log: config.h,v $
42  *    Revision 1.4  2001/05/25 22:17:28  jongfoster
43  *    Resurrecting these files which are required for the MS Visual C++
44  *    build only.
45  *
46  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
47  *    Version 2.9.4 checkin.
48  *    - Merged popupfile and cookiefile, and added control over PCRS
49  *      filtering, in new "permissionsfile".
50  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
51  *      file error you now get a message box (in the Win32 GUI) rather
52  *      than the program exiting with no explanation.
53  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
54  *      skipping.
55  *    - Removed tabs from "config"
56  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
57  *    - Bumped up version number.
58  *
59  *    Revision 1.1.1.1  2001/05/15 13:58:49  oes
60  *    Initial import of version 2.9.3 source tree
61  *
62  *
63  *********************************************************************/
64 \f
65
66 /* Define to empty if the keyword does not work.  */
67 /* #undef const */
68
69 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
70 /* #undef size_t */
71
72 /* Define if you have the ANSI C header files.  */
73 #define STDC_HEADERS 1
74
75 /*
76  * Version number - Major (X._._)
77  */
78 #define VERSION_MAJOR 2
79
80 /*
81  * Version number - Minor (_.X._)
82  */
83 #define VERSION_MINOR 9
84
85 /*
86  * Version number - Point (_._.X)
87  */
88 #define VERSION_POINT 4
89
90 /*
91  * Version number, as a string
92  */
93 #define VERSION "2.9.4"
94
95 /*
96  * Regular expression matching for URLs.  (Highly recommended).  If this is 
97  * not defined then you can ony use prefix matching.
98  */
99 #define REGEX 1
100
101 /*
102  * Allow JunkBuster to be "disabled" so it is just a normal non-blocking
103  * non-anonymizing proxy.  This is useful if you're trying to access a
104  * blocked or broken site - just change the setting in the config file
105  * and send a SIGHUP (UN*X), or use the handy "Disable" menu option (Windows
106  * GUI).
107  */
108 #define TOGGLE 1
109
110 /*
111  * Enables arbitrary content modification regexps
112  */
113 #define PCRS 1
114
115 /*
116  * If a stream is compressed via gzip (Netscape specific I think), then
117  * it cannot be modified with Perl regexps.  This forces it to be 
118  * uncompressed.
119  */
120 #define DENY_GZIP 1
121
122 /*
123  * Enables statistics function.
124  */
125 #define STATISTICS 1
126
127 /*
128  * Bypass filtering for 1 page only
129  */
130 #define FORCE_LOAD 1
131
132 /*
133  * Locally redirect remote script-redirect URLs
134  */
135 #define FAST_REDIRECTS 1
136
137 /*
138  * Split the show-proxy-args page into a page for each config file.
139  */
140 #define SPLIT_PROXY_ARGS 1
141
142 /*
143  * Kills JavaScript popups - window.open, onunload, etc.
144  */
145 #define KILLPOPUPS 1
146
147 /*
148  * Support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail
149  */
150 #define WEBDAV 1
151
152 /*
153  * Detect image requests automatically for MSIE.  Will fall back to
154  * other image-detection methods (i.e. USE_IMAGE_LIST) for other
155  * browsers.
156  *
157  * It detects the following header pair as an image request:
158  *
159  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
160  * Accept: * / *
161  *
162  * And the following as a HTML request:
163  *
164  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
165  * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
166  *
167  * And no, I haven't got that backwards - IE is being wierd.
168  *
169  * Known limitations: 
170  * 1) If you press shift-reload on a blocked HTML page, you get
171  *    the image "blocked" page, not the HTML "blocked" page.
172  * 2) Once an image "blocked" page has been sent, viewing it 
173  *    in it's own browser window *should* bring up the HTML
174  *    "blocked" page, but it doesn't.  You need to clear the 
175  *    browser cache to get the HTML version again.
176  *
177  * These limitations are due to IE making inconsistent choices
178  * about which "Accept:" header to send.
179  */
180 #define DETECT_MSIE_IMAGES 1
181
182 /*
183  * Use image list to detect images.
184  * If you do not define this then everything is treated as HTML.
185  *
186  * Whatever the setting of this value, DETECT_MSIE_IMAGES will 
187  * override it for people using Internet Explorer.
188  */
189 #define USE_IMAGE_LIST 1
190
191 /*
192  * Allows the use of ACL files to control access to the proxy by IP address.
193  */
194 #define ACL_FILES 1
195
196 /*
197  * Allows the use of trust files.
198  */
199 #define TRUST_FILES 1
200
201 /*
202  * Allows the use of jar files to capture cookies.
203  */
204 #define JAR_FILES 1
205
206 /*
207  * Use PCRE rather than GNU Regex
208  */
209 #define PCRE 1
210
211 /* Define if you have the bcopy function.  */
212 #define HAVE_BCOPY 1
213
214 /* Define if you have the memmove function.  */
215 #define HAVE_MEMMOVE 1
216
217 /* Define if you have the strerror function.  */
218 #define HAVE_STRERROR 1
219
220 #endif /* _CONFIG_H */