config.h.in 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. /* config.h.in. Generated from configure.in by autoheader 2.61-MirPorts-0. */
  2. #ifndef CONFIG_H_INCLUDED
  3. #define CONFIG_H_INCLUDED
  4. /*********************************************************************
  5. *
  6. * File : $Source: /cvsroot/ijbswa/current/acconfig.h,v $
  7. *
  8. * Purpose : This file should be the first thing included in every
  9. * .c file. (Before even system headers). It contains
  10. * #define statements for various features. It was
  11. * introduced because the compile command line started
  12. * getting ludicrously long with feature defines.
  13. *
  14. * Copyright : Written by and Copyright (C) 2001 the SourceForge
  15. * Privoxy team. http://www.privoxy.org/
  16. *
  17. * Based on the Internet Junkbuster originally written
  18. * by and Copyright (C) 1997 Anonymous Coders and
  19. * Junkbusters Corporation. http://www.junkbusters.com
  20. *
  21. * This program is free software; you can redistribute it
  22. * and/or modify it under the terms of the GNU General
  23. * Public License as published by the Free Software
  24. * Foundation; either version 2 of the License, or (at
  25. * your option) any later version.
  26. *
  27. * This program is distributed in the hope that it will
  28. * be useful, but WITHOUT ANY WARRANTY; without even the
  29. * implied warranty of MERCHANTABILITY or FITNESS FOR A
  30. * PARTICULAR PURPOSE. See the GNU General Public
  31. * License for more details.
  32. *
  33. * The GNU General Public License should be included with
  34. * this file. If not, you can view it at
  35. * http://www.gnu.org/copyleft/gpl.html
  36. * or write to the Free Software Foundation, Inc., 59
  37. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  38. *
  39. * Revisions :
  40. * $Log: acconfig.h,v $
  41. * Revision 1.27.2.4 2003/12/17 16:34:40 oes
  42. * Cosmetics
  43. *
  44. * Revision 1.27.2.3 2003/03/27 16:03:19 oes
  45. * Another shot at Bug #707467
  46. *
  47. * Revision 1.27.2.2 2003/03/21 14:39:12 oes
  48. * Presumably fixed Bug #707467 by defining unix ifdef __unix__
  49. *
  50. * Revision 1.27.2.1 2002/08/10 11:22:31 oes
  51. * - Add two AC_DEFINEs that indicate if the pcre*.h headers
  52. * are located in a pcre/ subdir to the include path.
  53. *
  54. * Revision 1.27 2002/04/25 19:13:57 morcego
  55. * Removed RPM release number declaration on configure.in
  56. * Changed makefile to use given value for RPM_PACKAGEV when on uploading
  57. * targets (will produce an error, explaining who to do it, if no value
  58. * if provided).
  59. *
  60. * Revision 1.26 2002/04/11 11:00:21 oes
  61. * Applied Moritz' fix for socklen_t on Solaris
  62. *
  63. * Revision 1.25 2002/04/06 20:38:01 jongfoster
  64. * Renaming VC++ versions of config.h
  65. *
  66. * Revision 1.24 2002/04/04 00:36:36 gliptak
  67. * always use pcre for matching
  68. *
  69. * Revision 1.23 2002/04/03 22:28:03 gliptak
  70. * Removed references to gnu_regex
  71. *
  72. * Revision 1.22 2002/03/26 22:29:54 swa
  73. * we have a new homepage!
  74. *
  75. * Revision 1.21 2002/03/24 14:31:08 swa
  76. * remove more crappy files. set RPM
  77. * release version correctly.
  78. *
  79. * Revision 1.20 2002/03/24 13:46:44 swa
  80. * name change related issue.
  81. *
  82. * Revision 1.19 2002/03/24 13:25:42 swa
  83. * name change related issues
  84. *
  85. * Revision 1.18 2002/03/08 16:40:28 oes
  86. * Added FEATURE_NO_GIFS
  87. *
  88. * Revision 1.17 2002/03/04 17:52:44 oes
  89. * Deleted PID_FILE_PATH
  90. *
  91. * Revision 1.16 2002/01/10 12:36:18 oes
  92. * Moved HAVE_*_R to acconfig.h, where they belong.
  93. *
  94. * Revision 1.15 2001/12/30 14:07:31 steudten
  95. * - Add signal handling (unix)
  96. * - Add SIGHUP handler (unix)
  97. * - Add creation of pidfile (unix)
  98. * - Add action 'top' in rc file (RH)
  99. * - Add entry 'SIGNALS' to manpage
  100. * - Add exit message to logfile (unix)
  101. *
  102. * Revision 1.14 2001/10/23 21:24:09 jongfoster
  103. * Support for FEATURE_CGI_EDIT_ACTIONS
  104. *
  105. * Revision 1.13 2001/10/07 15:30:41 oes
  106. * Removed FEATURE_DENY_GZIP
  107. *
  108. * Revision 1.12 2001/09/13 19:56:37 jongfoster
  109. * Reverting to revision 1.10 - previous checking was majorly broken.
  110. *
  111. * Revision 1.10 2001/07/30 22:08:36 jongfoster
  112. * Tidying up #defines:
  113. * - All feature #defines are now of the form FEATURE_xxx
  114. * - Permanently turned off WIN_GUI_EDIT
  115. * - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
  116. *
  117. * Revision 1.9 2001/07/29 19:08:52 jongfoster
  118. * Changing _CONFIG_H to CONFIG_H_INCLUDED.
  119. * Also added protection against using a MinGW32 or CygWin version of
  120. * config.h from within MS Visual C++
  121. *
  122. * Revision 1.8 2001/07/29 17:09:17 jongfoster
  123. * Major changes to build system in order to fix these bugs:
  124. * - pthreads under Linux was broken - changed -lpthread to -pthread
  125. * - Compiling in MinGW32 mode under CygWin now correctly detects
  126. * which shared libraries are available
  127. * - Solaris support (?) (Not tested under Solaris yet)
  128. *
  129. * Revision 1.7 2001/07/25 22:53:59 jongfoster
  130. * Will #error if pthreads is enabled under BeOs
  131. *
  132. * Revision 1.6 2001/07/15 17:54:29 jongfoster
  133. * Renaming #define STATIC to STATIC_PCRE
  134. * Adding new #define FEATURE_PTHREAD that will be used to enable
  135. * POSIX threads support.
  136. *
  137. * Revision 1.5 2001/07/13 13:48:37 oes
  138. * - (Fix:) Copied CODE_STATUS #define from config.h.in
  139. * - split REGEX #define into REGEX_GNU and REGEX_PCRE
  140. * and removed PCRE.
  141. * (REGEX = REGEX_GNU || REGEX_PCRE per project.h)
  142. * - Moved STATIC (for pcre) here from Makefile.in
  143. * - Introduced STATIC_PCRS #define to allow for dynaimc linking with
  144. * libpcrs
  145. * - Removed PCRS #define, since pcrs is now needed for CGI anyway
  146. *
  147. * Revision 1.4 2001/05/29 09:50:24 jongfoster
  148. * Unified blocklist/imagelist/permissionslist.
  149. * File format is still under discussion, but the internal changes
  150. * are (mostly) done.
  151. *
  152. * Also modified interceptor behaviour:
  153. * - We now intercept all URLs beginning with one of the following
  154. * prefixes (and *only* these prefixes):
  155. * * http://i.j.b/
  156. * * http://ijbswa.sf.net/config/
  157. * * http://ijbswa.sourceforge.net/config/
  158. * - New interceptors "home page" - go to http://i.j.b/ to see it.
  159. * - Internal changes so that intercepted and fast redirect pages
  160. * are not replaced with an image.
  161. * - Interceptors now have the option to send a binary page direct
  162. * to the client. (i.e. ijb-send-banner uses this)
  163. * - Implemented show-url-info interceptor. (Which is why I needed
  164. * the above interceptors changes - a typical URL is
  165. * "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
  166. * The previous mechanism would not have intercepted that, and
  167. * if it had been intercepted then it then it would have replaced
  168. * it with an image.)
  169. *
  170. * Revision 1.3 2001/05/26 01:26:34 jongfoster
  171. * New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
  172. * This #define cannot be set from ./configure - there's no point, it
  173. * doesn't work yet. See feature request # 425722
  174. *
  175. * Revision 1.2 2001/05/22 17:43:35 oes
  176. *
  177. * - Enabled filtering banners by size rather than URL
  178. * by adding patterns that replace all standard banner
  179. * sizes with the "Junkbuster" gif to the re_filterfile
  180. *
  181. * - Enabled filtering WebBugs by providing a pattern
  182. * which kills all 1x1 images
  183. *
  184. * - Added support for PCRE_UNGREEDY behaviour to pcrs,
  185. * which is selected by the (nonstandard and therefore
  186. * capital) letter 'U' in the option string.
  187. * It causes the quantifiers to be ungreedy by default.
  188. * Appending a ? turns back to greedy (!).
  189. *
  190. * - Added a new interceptor ijb-send-banner, which
  191. * sends back the "Junkbuster" gif. Without imagelist or
  192. * MSIE detection support, or if tinygif = 1, or the
  193. * URL isn't recognized as an imageurl, a lame HTML
  194. * explanation is sent instead.
  195. *
  196. * - Added new feature, which permits blocking remote
  197. * script redirects and firing back a local redirect
  198. * to the browser.
  199. * The feature is conditionally compiled, i.e. it
  200. * can be disabled with --disable-fast-redirects,
  201. * plus it must be activated by a "fast-redirects"
  202. * line in the config file, has its own log level
  203. * and of course wants to be displayed by show-proxy-args
  204. * Note: Boy, all the #ifdefs in 1001 locations and
  205. * all the fumbling with configure.in and acconfig.h
  206. * were *way* more work than the feature itself :-(
  207. *
  208. * - Because a generic redirect template was needed for
  209. * this, tinygif = 3 now uses the same.
  210. *
  211. * - Moved GIFs, and other static HTTP response templates
  212. * to project.h
  213. *
  214. * - Many minor fixes
  215. *
  216. * - Removed some >400 CRs again (Jon, you really worked
  217. * a lot! ;-)
  218. *
  219. * Revision 1.1.1.1 2001/05/15 13:58:45 oes
  220. * Initial import of version 2.9.3 source tree
  221. *
  222. *
  223. *********************************************************************/
  224. /*
  225. * Version number - Major (X._._)
  226. */
  227. #undef VERSION_MAJOR
  228. /*
  229. * Version number - Minor (_.X._)
  230. */
  231. #undef VERSION_MINOR
  232. /*
  233. * Version number - Point (_._.X)
  234. */
  235. #undef VERSION_POINT
  236. /*
  237. * Version number, as a string
  238. */
  239. #undef VERSION
  240. /*
  241. * Status of the code: "alpha", "beta" or "stable".
  242. */
  243. #undef CODE_STATUS
  244. /*
  245. * Should pcre be statically built in instead of linkling with libpcre?
  246. * (This is determined by configure depending on the availiability of
  247. * libpcre and user preferences). The name is ugly, but pcre needs it.
  248. * Don't bother to change this here! Use configure instead.
  249. */
  250. #undef STATIC_PCRE
  251. /*
  252. * Should pcrs be statically built in instead of linkling with libpcrs?
  253. * (This is determined by configure depending on the availiability of
  254. * libpcrs and user preferences).
  255. * Don't bother to change this here! Use configure instead.
  256. */
  257. #undef STATIC_PCRS
  258. /*
  259. * Allows the use of an ACL to control access to the proxy by IP address.
  260. */
  261. #undef FEATURE_ACL
  262. /*
  263. * Enables the web-based configuration (actionsfile) editor. If you
  264. * have a shared proxy, you might want to turn this off.
  265. */
  266. #undef FEATURE_CGI_EDIT_ACTIONS
  267. /*
  268. * Allows the use of jar files to capture cookies.
  269. */
  270. #undef FEATURE_COOKIE_JAR
  271. /*
  272. * Locally redirect remote script-redirect URLs
  273. */
  274. #undef FEATURE_FAST_REDIRECTS
  275. /*
  276. * Bypass filtering for 1 page only
  277. */
  278. #undef FEATURE_FORCE_LOAD
  279. /*
  280. * Allow blocking using images as well as HTML.
  281. * If you do not define this then everything is blocked as HTML.
  282. *
  283. * Note that this is required if you want to use FEATURE_IMAGE_DETECT_MSIE.
  284. */
  285. #undef FEATURE_IMAGE_BLOCKING
  286. /*
  287. * Detect image requests automatically for MSIE. Will fall back to
  288. * other image-detection methods (i.e. "+image" permission) for other
  289. * browsers.
  290. *
  291. * You must also define FEATURE_IMAGE_BLOCKING to use this feature.
  292. *
  293. * It detects the following header pair as an image request:
  294. *
  295. * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
  296. * Accept: * / *
  297. *
  298. * And the following as a HTML request:
  299. *
  300. * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
  301. * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
  302. *
  303. * And no, I haven't got that backwards - IE is being wierd.
  304. *
  305. * Known limitations:
  306. * 1) If you press shift-reload on a blocked HTML page, you get
  307. * the image "blocked" page, not the HTML "blocked" page.
  308. * 2) Once an image "blocked" page has been sent, viewing it
  309. * in it's own browser window *should* bring up the HTML
  310. * "blocked" page, but it doesn't. You need to clear the
  311. * browser cache to get the HTML version again.
  312. *
  313. * These limitations are due to IE making inconsistent choices
  314. * about which "Accept:" header to send.
  315. */
  316. #undef FEATURE_IMAGE_DETECT_MSIE
  317. /*
  318. * Kills JavaScript popups - window.open, onunload, etc.
  319. */
  320. #undef FEATURE_KILL_POPUPS
  321. /*
  322. * Use PNG instead of GIF for built-in images
  323. */
  324. #undef FEATURE_NO_GIFS
  325. /*
  326. * Use POSIX threads instead of native threads.
  327. */
  328. #undef FEATURE_PTHREAD
  329. /*
  330. * Enables statistics function.
  331. */
  332. #undef FEATURE_STATISTICS
  333. /*
  334. * Allow Privoxy to be "disabled" so it is just a normal non-blocking
  335. * non-anonymizing proxy. This is useful if you're trying to access a
  336. * blocked or broken site - just change the setting in the config file,
  337. * or use the handy "Disable" menu option in the Windows GUI.
  338. */
  339. #undef FEATURE_TOGGLE
  340. /*
  341. * Allows the use of trust files.
  342. */
  343. #undef FEATURE_TRUST
  344. /*
  345. * Defined on Solaris only. Makes the system libraries thread safe.
  346. */
  347. #undef _REENTRANT
  348. /*
  349. * Defined on Solaris only. Without this, many important functions are not
  350. * defined in the system headers.
  351. */
  352. #undef __EXTENSIONS__
  353. /*
  354. * Defined always.
  355. * FIXME: Don't know what it does or why we need it.
  356. * (presumably something to do with MultiThreading?)
  357. */
  358. #undef __MT__
  359. /* If the (nonstandard and thread-safe) function gethostbyname_r
  360. * is available, select which signature to use
  361. */
  362. #undef HAVE_GETHOSTBYNAME_R_6_ARGS
  363. #undef HAVE_GETHOSTBYNAME_R_5_ARGS
  364. #undef HAVE_GETHOSTBYNAME_R_3_ARGS
  365. /* If the (nonstandard and thread-safe) function gethostbyaddr_r
  366. * is available, select which signature to use
  367. */
  368. #undef HAVE_GETHOSTBYADDR_R_8_ARGS
  369. #undef HAVE_GETHOSTBYADDR_R_7_ARGS
  370. #undef HAVE_GETHOSTBYADDR_R_5_ARGS
  371. /* Defined if you have gmtime_r and localtime_r with a signature
  372. * of (struct time *, struct tm *)
  373. */
  374. #undef HAVE_GMTIME_R
  375. #undef HAVE_LOCALTIME_R
  376. /* Define to 'int' if <sys/socket.h> doesn't have it.
  377. */
  378. #undef socklen_t
  379. /* Define if pcre.h must be included as <pcre/pcre.h>
  380. */
  381. #undef PCRE_H_IN_SUBDIR
  382. /* Define if pcreposix.h must be included as <pcre/pcreposix.h>
  383. */
  384. #undef PCREPOSIX_H_IN_SUBDIR
  385. /* Define to 1 if you have the <arpa/inet.h> header file. */
  386. #undef HAVE_ARPA_INET_H
  387. /* Define to 1 if you have the `atexit' function. */
  388. #undef HAVE_ATEXIT
  389. /* Define to 1 if you have the `bcopy' function. */
  390. #undef HAVE_BCOPY
  391. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  392. */
  393. #undef HAVE_DIRENT_H
  394. /* Define to 1 if you have the <errno.h> header file. */
  395. #undef HAVE_ERRNO_H
  396. /* Define to 1 if you have the <fcntl.h> header file. */
  397. #undef HAVE_FCNTL_H
  398. /* Define to 1 if you have the `getcwd' function. */
  399. #undef HAVE_GETCWD
  400. /* Define to 1 if you have the `gethostbyaddr' function. */
  401. #undef HAVE_GETHOSTBYADDR
  402. /* Define to 1 if you have the `gethostbyname' function. */
  403. #undef HAVE_GETHOSTBYNAME
  404. /* Define to 1 if you have the `inet_ntoa' function. */
  405. #undef HAVE_INET_NTOA
  406. /* Define to 1 if you have the <inttypes.h> header file. */
  407. #undef HAVE_INTTYPES_H
  408. /* Define to 1 if you have the `nsl' library (-lnsl). */
  409. #undef HAVE_LIBNSL
  410. /* Define to 1 if you have the <limits.h> header file. */
  411. #undef HAVE_LIMITS_H
  412. /* Define to 1 if you have the <locale.h> header file. */
  413. #undef HAVE_LOCALE_H
  414. /* Define to 1 if you have the `localtime_r' function. */
  415. #undef HAVE_LOCALTIME_R
  416. /* Define to 1 if you have the `memchr' function. */
  417. #undef HAVE_MEMCHR
  418. /* Define to 1 if you have the `memmove' function. */
  419. #undef HAVE_MEMMOVE
  420. /* Define to 1 if you have the <memory.h> header file. */
  421. #undef HAVE_MEMORY_H
  422. /* Define to 1 if you have the `memset' function. */
  423. #undef HAVE_MEMSET
  424. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  425. #undef HAVE_NDIR_H
  426. /* Define to 1 if you have the <netdb.h> header file. */
  427. #undef HAVE_NETDB_H
  428. /* Define to 1 if you have the <netinet/in.h> header file. */
  429. #undef HAVE_NETINET_IN_H
  430. /* Define to 1 if you have the <OS.h> header file. */
  431. #undef HAVE_OS_H
  432. /* Define to 1 if you have the `regcomp' function. */
  433. #undef HAVE_REGCOMP
  434. /* Define to 1 if you have the `select' function. */
  435. #undef HAVE_SELECT
  436. /* Define to 1 if you have the `setlocale' function. */
  437. #undef HAVE_SETLOCALE
  438. /* Define to 1 if you have the `socket' function. */
  439. #undef HAVE_SOCKET
  440. /* Define to 1 if you have the <stddef.h> header file. */
  441. #undef HAVE_STDDEF_H
  442. /* Define to 1 if you have the <stdint.h> header file. */
  443. #undef HAVE_STDINT_H
  444. /* Define to 1 if you have the <stdlib.h> header file. */
  445. #undef HAVE_STDLIB_H
  446. /* Define to 1 if you have the `strchr' function. */
  447. #undef HAVE_STRCHR
  448. /* Define to 1 if you have the `strdup' function. */
  449. #undef HAVE_STRDUP
  450. /* Define to 1 if you have the `strerror' function. */
  451. #undef HAVE_STRERROR
  452. /* Define to 1 if you have the `strftime' function. */
  453. #undef HAVE_STRFTIME
  454. /* Define to 1 if you have the <strings.h> header file. */
  455. #undef HAVE_STRINGS_H
  456. /* Define to 1 if you have the <string.h> header file. */
  457. #undef HAVE_STRING_H
  458. /* Define to 1 if you have the `strstr' function. */
  459. #undef HAVE_STRSTR
  460. /* Define to 1 if you have the `strtoul' function. */
  461. #undef HAVE_STRTOUL
  462. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  463. */
  464. #undef HAVE_SYS_DIR_H
  465. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  466. #undef HAVE_SYS_IOCTL_H
  467. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  468. */
  469. #undef HAVE_SYS_NDIR_H
  470. /* Define to 1 if you have the <sys/socket.h> header file. */
  471. #undef HAVE_SYS_SOCKET_H
  472. /* Define to 1 if you have the <sys/stat.h> header file. */
  473. #undef HAVE_SYS_STAT_H
  474. /* Define to 1 if you have the <sys/timeb.h> header file. */
  475. #undef HAVE_SYS_TIMEB_H
  476. /* Define to 1 if you have the <sys/time.h> header file. */
  477. #undef HAVE_SYS_TIME_H
  478. /* Define to 1 if you have the <sys/types.h> header file. */
  479. #undef HAVE_SYS_TYPES_H
  480. /* Define to 1 if you have the <sys/wait.h> header file. */
  481. #undef HAVE_SYS_WAIT_H
  482. /* Define to 1 if you have the <unistd.h> header file. */
  483. #undef HAVE_UNISTD_H
  484. /* Define to the address where bug reports for this package should be sent. */
  485. #undef PACKAGE_BUGREPORT
  486. /* Define to the full name of this package. */
  487. #undef PACKAGE_NAME
  488. /* Define to the full name and version of this package. */
  489. #undef PACKAGE_STRING
  490. /* Define to the one symbol short name of this package. */
  491. #undef PACKAGE_TARNAME
  492. /* Define to the version of this package. */
  493. #undef PACKAGE_VERSION
  494. /* Define as the return type of signal handlers (`int' or `void'). */
  495. #undef RETSIGTYPE
  496. /* Define to 1 if the `setpgrp' function takes no argument. */
  497. #undef SETPGRP_VOID
  498. /* The size of `char *', as computed by sizeof. */
  499. #undef SIZEOF_CHAR_P
  500. /* The size of `int', as computed by sizeof. */
  501. #undef SIZEOF_INT
  502. /* The size of `long', as computed by sizeof. */
  503. #undef SIZEOF_LONG
  504. /* The size of `long long', as computed by sizeof. */
  505. #undef SIZEOF_LONG_LONG
  506. /* The size of `size_t', as computed by sizeof. */
  507. #undef SIZEOF_SIZE_T
  508. /* Define to 1 if you have the ANSI C header files. */
  509. #undef STDC_HEADERS
  510. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  511. #undef TIME_WITH_SYS_TIME
  512. /* Define to 1 if your <sys/time.h> declares `struct tm'. */
  513. #undef TM_IN_SYS_TIME
  514. /* Define to empty if `const' does not conform to ANSI C. */
  515. #undef const
  516. /* Define to `int' if <sys/types.h> does not define. */
  517. #undef pid_t
  518. /* Define to `unsigned int' if <sys/types.h> does not define. */
  519. #undef size_t
  520. /* Define to 'int' if <sys/socket.h> doesn't have it. */
  521. #undef socklen_t
  522. /*
  523. * Defined always.
  524. * FIXME: Don't know what it does or why we need it.
  525. * (presumably something to do with ANSI Standard C?)
  526. */
  527. #ifndef __STDC__
  528. #define __STDC__ 1
  529. #endif /* ndef __STDC__ */
  530. /*
  531. * Need to set up this define only for the Pthreads library for
  532. * Win32, available from http://sources.redhat.com/pthreads-win32/
  533. */
  534. #if defined(FEATURE_PTHREAD) && defined(_WIN32)
  535. #define __CLEANUP_C
  536. #endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
  537. /*
  538. * BEOS does not currently support POSIX threads.
  539. * This *should* be detected by ./configure, but let's be sure.
  540. */
  541. #if defined(FEATURE_PTHREAD) && defined(__BEOS__)
  542. #error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
  543. #endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
  544. /*
  545. * On OpenBSD and maybe also FreeBSD, gcc doesn't define the cpp
  546. * symbol unix; it defines __unix__ and sometimes not even that:
  547. */
  548. #if ( defined(__unix__) || defined(__NetBSD__) ) && !defined(unix)
  549. #define unix 1
  550. #endif
  551. /*
  552. * It's too easy to accidentally use a Cygwin or MinGW32 version of config.h
  553. * under VC++, and it usually gives many wierd error messages. Let's make
  554. * the error messages understandable, by bailing out now.
  555. */
  556. #ifdef _MSC_VER
  557. #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.
  558. #endif /* def _MSC_VER */
  559. #endif /* CONFIG_H_INCLUDED */