Update announcement for Privoxy 3.0.24 stable
[privoxy.git] / acconfig.h
1 #ifndef CONFIG_H_INCLUDED
2 #define CONFIG_H_INCLUDED
3 /*********************************************************************
4  *
5  * File        :  $Source: /cvsroot/ijbswa/current/acconfig.h,v $
6  *
7  * Purpose     :  This file should be the first thing included in every
8  *                .c file.  (Before even system headers).  It contains
9  *                #define statements for various features.  It was
10  *                introduced because the compile command line started
11  *                getting ludicrously long with feature defines.
12  *
13  * Copyright   :  Written by and Copyright (C) 2001-2014 the
14  *                Privoxy team. http://www.privoxy.org/
15  *
16  *                Based on the Internet Junkbuster originally written
17  *                by and Copyright (C) 1997 Anonymous Coders and
18  *                Junkbusters Corporation.  http://www.junkbusters.com
19  *
20  *                This program is free software; you can redistribute it
21  *                and/or modify it under the terms of the GNU General
22  *                Public License as published by the Free Software
23  *                Foundation; either version 2 of the License, or (at
24  *                your option) any later version.
25  *
26  *                This program is distributed in the hope that it will
27  *                be useful, but WITHOUT ANY WARRANTY; without even the
28  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
29  *                PARTICULAR PURPOSE.  See the GNU General Public
30  *                License for more details.
31  *
32  *                The GNU General Public License should be included with
33  *                this file.  If not, you can view it at
34  *                http://www.gnu.org/copyleft/gpl.html
35  *                or write to the Free Software Foundation, Inc., 59
36  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
37  *
38  *********************************************************************/
39
40 @TOP@
41
42 /*
43  * Version number - Major (X._._)
44  */
45 #undef VERSION_MAJOR
46
47 /*
48  * Version number - Minor (_.X._)
49  */
50 #undef VERSION_MINOR
51
52 /*
53  * Version number - Point (_._.X)
54  */
55 #undef VERSION_POINT
56
57 /*
58  * Version number, as a string
59  */
60 #undef VERSION
61
62 /*
63  * Status of the code: "alpha", "beta" or "stable".
64  */
65 #undef CODE_STATUS
66
67 /*
68  * Should pcre be statically built in instead of linkling with libpcre?
69  * (This is determined by configure depending on the availiability of
70  * libpcre and user preferences).
71  * Don't bother to change this here! Use configure instead.
72  */
73 #undef FEATURE_DYNAMIC_PCRE
74
75 /*
76  * Should pcrs be statically built in instead of linkling with libpcrs?
77  * (This is determined by configure depending on the availiability of
78  * libpcrs and user preferences).
79  * Don't bother to change this here! Use configure instead.
80  */
81 #undef STATIC_PCRS
82
83 /*
84  * Allows the use of an ACL to control access to the proxy by IP address.
85  */
86 #undef FEATURE_ACL
87
88 /*
89  * Allow Privoxy to use accf_http(9) if supported.
90  */
91 #undef FEATURE_ACCEPT_FILTER
92
93 /*
94  * Enables the web-based configuration (actionsfile) editor.  If you
95  * have a shared proxy, you might want to turn this off.
96  */
97 #undef FEATURE_CGI_EDIT_ACTIONS
98
99 /*
100  * Locally redirect remote script-redirect URLs
101  */
102 #undef FEATURE_FAST_REDIRECTS
103
104 /*
105  * Bypass filtering for 1 page only
106  */
107 #undef FEATURE_FORCE_LOAD
108
109 /*
110  * Allow blocking using images as well as HTML.
111  * If you do not define this then everything is blocked as HTML.
112  *
113  * Note that this is required if you want to use FEATURE_IMAGE_DETECT_MSIE.
114  */
115 #undef FEATURE_IMAGE_BLOCKING
116
117 /*
118  * Detect image requests automatically for MSIE.  Will fall back to
119  * other image-detection methods (i.e. "+image" permission) for other
120  * browsers.
121  *
122  * You must also define FEATURE_IMAGE_BLOCKING to use this feature.
123  *
124  * It detects the following header pair as an image request:
125  *
126  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
127  * Accept: * / *
128  *
129  * And the following as a HTML request:
130  *
131  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
132  * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
133  *
134  * And no, I haven't got that backwards - IE is being weird.
135  *
136  * Known limitations:
137  * 1) If you press shift-reload on a blocked HTML page, you get
138  *    the image "blocked" page, not the HTML "blocked" page.
139  * 2) Once an image "blocked" page has been sent, viewing it
140  *    in it's own browser window *should* bring up the HTML
141  *    "blocked" page, but it doesn't.  You need to clear the
142  *    browser cache to get the HTML version again.
143  *
144  * These limitations are due to IE making inconsistent choices
145  * about which "Accept:" header to send.
146  */
147 #undef FEATURE_IMAGE_DETECT_MSIE
148
149 /*
150  * Use PNG instead of GIF for built-in images
151  */
152 #undef FEATURE_NO_GIFS
153
154 /*
155  * Allow to shutdown Privoxy through the webinterface.
156  */
157 #undef FEATURE_GRACEFUL_TERMINATION
158
159 /*
160  * Allow PCRE syntax in host patterns.
161  */
162 #undef FEATURE_EXTENDED_HOST_PATTERNS
163
164 /*
165  * Allow filtering with scripts and programs.
166  */
167 #undef FEATURE_EXTERNAL_FILTERS
168
169 /*
170  * Keep connections alive if possible.
171  */
172 #undef FEATURE_CONNECTION_KEEP_ALIVE
173
174 /*
175  * Allow to share outgoing connections between incoming connections.
176  */
177 #undef FEATURE_CONNECTION_SHARING
178
179 /*
180  * Use POSIX threads instead of native threads.
181  */
182 #undef FEATURE_PTHREAD
183
184 /*
185  * Enables statistics function.
186  */
187 #undef FEATURE_STATISTICS
188
189 /*
190  * Enable strptime() sanity checks.
191  */
192 #undef FEATURE_STRPTIME_SANITY_CHECKS
193
194 /*
195  * Allow Privoxy to be "disabled" so it is just a normal non-blocking
196  * non-anonymizing proxy.  This is useful if you're trying to access a
197  * blocked or broken site - just change the setting in the config file,
198  * or use the handy "Disable" menu option in the Windows GUI.
199  */
200 #undef FEATURE_TOGGLE
201
202 /*
203  * Allows the use of trust files.
204  */
205 #undef FEATURE_TRUST
206
207 /*
208  * Defined on Solaris only.  Makes the system libraries thread safe.
209  */
210 #undef _REENTRANT
211
212 /*
213  * Defined on Solaris only.  Without this, many important functions are not
214  * defined in the system headers.
215  */
216 #undef __EXTENSIONS__
217
218 /*
219  * Defined always.
220  * FIXME: Don't know what it does or why we need it.
221  * (presumably something to do with MultiThreading?)
222  */
223 #undef __MT__
224
225 /* If the (nonstandard and thread-safe) function gethostbyname_r
226  * is available, select which signature to use
227  */
228 #undef HAVE_GETHOSTBYNAME_R_6_ARGS
229 #undef HAVE_GETHOSTBYNAME_R_5_ARGS
230 #undef HAVE_GETHOSTBYNAME_R_3_ARGS
231
232 /* If the (nonstandard and thread-safe) function gethostbyaddr_r
233  * is available, select which signature to use
234  */
235 #undef HAVE_GETHOSTBYADDR_R_8_ARGS
236 #undef HAVE_GETHOSTBYADDR_R_7_ARGS
237 #undef HAVE_GETHOSTBYADDR_R_5_ARGS
238
239 /* Defined if you have gmtime_r and localtime_r with a signature
240  * of (struct time *, struct tm *)
241  */
242 #undef HAVE_GMTIME_R
243 #undef HAVE_LOCALTIME_R
244
245 /* Define to 'int' if <sys/socket.h> doesn't have it.
246  */
247 #undef socklen_t
248
249 /* Define if pcre.h must be included as <pcre/pcre.h>
250  */
251 #undef PCRE_H_IN_SUBDIR
252
253 /* Define if pcreposix.h must be included as <pcre/pcreposix.h>
254  */
255 #undef PCREPOSIX_H_IN_SUBDIR
256
257 @BOTTOM@
258
259 /*
260  * Defined always.
261  * FIXME: Don't know what it does or why we need it.
262  * (presumably something to do with ANSI Standard C?)
263  */
264 #ifndef __STDC__
265 #define __STDC__ 1
266 #endif /* ndef __STDC__ */
267
268 /*
269  * Need to set up this define only for the Pthreads library for
270  * Win32, available from http://sources.redhat.com/pthreads-win32/
271  */
272 #if defined(FEATURE_PTHREAD) && defined(_WIN32)
273 #define __CLEANUP_C
274 #endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
275
276 /*
277  * BEOS does not currently support POSIX threads.
278  * This *should* be detected by ./configure, but let's be sure.
279  */
280 #if defined(FEATURE_PTHREAD) && defined(__BEOS__)
281 #error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
282
283 #endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
284
285 /*
286  * On OpenBSD and maybe also FreeBSD, gcc doesn't define the cpp
287  * symbol unix; it defines __unix__ and sometimes not even that:
288  */
289 #if ( defined(__unix__) || defined(__NetBSD__) ) && !defined(unix)
290 #define unix 1
291 #endif
292
293 /*
294  * It's too easy to accidentally use a Cygwin or MinGW32 version of config.h
295  * under VC++, and it usually gives many weird error messages.  Let's make
296  * the error messages understandable, by bailing out now.
297  */
298 #ifdef _MSC_VER
299 #error For MS VC++, please use vc_config_winthreads.h or vc_config_pthreads.h.  You can usually do this by selecting the "Build", "Clean" menu option.
300 #endif /* def _MSC_VER */
301
302 #endif /* CONFIG_H_INCLUDED */