acconfig.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. https://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. @TOP@
  40. /*
  41. * Version number - Major (X._._)
  42. */
  43. #undef VERSION_MAJOR
  44. /*
  45. * Version number - Minor (_.X._)
  46. */
  47. #undef VERSION_MINOR
  48. /*
  49. * Version number - Point (_._.X)
  50. */
  51. #undef VERSION_POINT
  52. /*
  53. * Version number, as a string
  54. */
  55. #undef VERSION
  56. /*
  57. * Status of the code: "alpha", "beta" or "stable".
  58. */
  59. #undef CODE_STATUS
  60. /*
  61. * Should pcre be statically built in instead of linkling with libpcre?
  62. * (This is determined by configure depending on the availiability of
  63. * libpcre and user preferences).
  64. * Don't bother to change this here! Use configure instead.
  65. */
  66. #undef FEATURE_DYNAMIC_PCRE
  67. /*
  68. * Should pcrs be statically built in instead of linkling with libpcrs?
  69. * (This is determined by configure depending on the availiability of
  70. * libpcrs and user preferences).
  71. * Don't bother to change this here! Use configure instead.
  72. */
  73. #undef STATIC_PCRS
  74. /*
  75. * Allows the use of an ACL to control access to the proxy by IP address.
  76. */
  77. #undef FEATURE_ACL
  78. /*
  79. * Allow Privoxy to use accf_http(9) if supported.
  80. */
  81. #undef FEATURE_ACCEPT_FILTER
  82. /*
  83. * Enables the web-based configuration (actionsfile) editor. If you
  84. * have a shared proxy, you might want to turn this off.
  85. */
  86. #undef FEATURE_CGI_EDIT_ACTIONS
  87. /*
  88. * Locally redirect remote script-redirect URLs
  89. */
  90. #undef FEATURE_FAST_REDIRECTS
  91. /*
  92. * Bypass filtering for 1 page only
  93. */
  94. #undef FEATURE_FORCE_LOAD
  95. /*
  96. * Allow blocking using images as well as HTML.
  97. * If you do not define this then everything is blocked as HTML.
  98. */
  99. #undef FEATURE_IMAGE_BLOCKING
  100. /*
  101. * Use PNG instead of GIF for built-in images
  102. */
  103. #undef FEATURE_NO_GIFS
  104. /*
  105. * Allow to shutdown Privoxy through the webinterface.
  106. */
  107. #undef FEATURE_GRACEFUL_TERMINATION
  108. /*
  109. * Allow PCRE syntax in host patterns.
  110. */
  111. #undef FEATURE_PCRE_HOST_PATTERNS
  112. /*
  113. * Gather extended statistics.
  114. */
  115. #undef FEATURE_EXTENDED_STATISTICS
  116. /*
  117. * Allow filtering with scripts and programs.
  118. */
  119. #undef FEATURE_EXTERNAL_FILTERS
  120. /*
  121. * Keep connections alive if possible.
  122. */
  123. #undef FEATURE_CONNECTION_KEEP_ALIVE
  124. /*
  125. * Allow to share outgoing connections between incoming connections.
  126. */
  127. #undef FEATURE_CONNECTION_SHARING
  128. /*
  129. * Use POSIX threads instead of native threads.
  130. */
  131. #undef FEATURE_PTHREAD
  132. /*
  133. * Enables statistics function.
  134. */
  135. #undef FEATURE_STATISTICS
  136. /*
  137. * Enable strptime() sanity checks.
  138. */
  139. #undef FEATURE_STRPTIME_SANITY_CHECKS
  140. /*
  141. * Allow Privoxy to be "disabled" so it is just a normal non-blocking
  142. * non-anonymizing proxy. This is useful if you're trying to access a
  143. * blocked or broken site - just change the setting in the config file,
  144. * or use the handy "Disable" menu option in the Windows GUI.
  145. */
  146. #undef FEATURE_TOGGLE
  147. /*
  148. * Allows the use of trust files.
  149. */
  150. #undef FEATURE_TRUST
  151. /*
  152. * Defined on Solaris only. Makes the system libraries thread safe.
  153. */
  154. #undef _REENTRANT
  155. /*
  156. * Defined on Solaris only. Without this, many important functions are not
  157. * defined in the system headers.
  158. */
  159. #undef __EXTENSIONS__
  160. /*
  161. * Defined always.
  162. * FIXME: Don't know what it does or why we need it.
  163. * (presumably something to do with MultiThreading?)
  164. */
  165. #undef __MT__
  166. /* If the (nonstandard and thread-safe) function gethostbyname_r
  167. * is available, select which signature to use
  168. */
  169. #undef HAVE_GETHOSTBYNAME_R_6_ARGS
  170. #undef HAVE_GETHOSTBYNAME_R_5_ARGS
  171. #undef HAVE_GETHOSTBYNAME_R_3_ARGS
  172. /* If the (nonstandard and thread-safe) function gethostbyaddr_r
  173. * is available, select which signature to use
  174. */
  175. #undef HAVE_GETHOSTBYADDR_R_8_ARGS
  176. #undef HAVE_GETHOSTBYADDR_R_7_ARGS
  177. #undef HAVE_GETHOSTBYADDR_R_5_ARGS
  178. /* Defined if you have gmtime_r and localtime_r with a signature
  179. * of (struct time *, struct tm *)
  180. */
  181. #undef HAVE_GMTIME_R
  182. #undef HAVE_LOCALTIME_R
  183. /* Define to 'int' if <sys/socket.h> doesn't have it.
  184. */
  185. #undef socklen_t
  186. /* Define if pcre.h must be included as <pcre/pcre.h>
  187. */
  188. #undef PCRE_H_IN_SUBDIR
  189. /* Define if pcreposix.h must be included as <pcre/pcreposix.h>
  190. */
  191. #undef PCREPOSIX_H_IN_SUBDIR
  192. @BOTTOM@
  193. /*
  194. * Defined always.
  195. * FIXME: Don't know what it does or why we need it.
  196. * (presumably something to do with ANSI Standard C?)
  197. */
  198. #ifndef __STDC__
  199. #define __STDC__ 1
  200. #endif /* ndef __STDC__ */
  201. /*
  202. * Need to set up this define only for the Pthreads library for
  203. * Win32, available from http://sources.redhat.com/pthreads-win32/
  204. */
  205. #if defined(FEATURE_PTHREAD) && defined(_WIN32)
  206. #define __CLEANUP_C
  207. #endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
  208. /*
  209. * BEOS does not currently support POSIX threads.
  210. * This *should* be detected by ./configure, but let's be sure.
  211. */
  212. #if defined(FEATURE_PTHREAD) && defined(__BEOS__)
  213. #error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
  214. #endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
  215. /*
  216. * On OpenBSD and maybe also FreeBSD, gcc doesn't define the cpp
  217. * symbol unix; it defines __unix__ and sometimes not even that:
  218. */
  219. #if ( defined(__unix__) || defined(__NetBSD__) ) && !defined(unix)
  220. #define unix 1
  221. #endif
  222. /*
  223. * It's too easy to accidentally use a Cygwin or MinGW32 version of config.h
  224. * under VC++, and it usually gives many weird error messages. Let's make
  225. * the error messages understandable, by bailing out now.
  226. */
  227. #ifdef _MSC_VER
  228. #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.
  229. #endif /* def _MSC_VER */
  230. #endif /* CONFIG_H_INCLUDED */