config.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. /* src/config.h. Generated from config.h.in by configure. */
  2. /* src/config.h.in. Generated from configure.ac by autoheader. */
  3. /* PCRE2 is written in Standard C, but there are a few non-standard things it
  4. can cope with, allowing it to run on SunOS4 and other "close to standard"
  5. systems.
  6. In environments that support the GNU autotools, config.h.in is converted into
  7. config.h by the "configure" script. In environments that use CMake,
  8. config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
  9. hand" without using "configure" or CMake, you should copy the distributed
  10. config.h.generic to config.h, and edit the macro definitions to be the way you
  11. need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
  12. so that config.h is included at the start of every source.
  13. Alternatively, you can avoid editing by using -D on the compiler command line
  14. to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
  15. but if you do, default values will be taken from config.h for non-boolean
  16. macros that are not defined on the command line.
  17. Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be
  18. defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All
  19. such macros are listed as a commented #undef in config.h.generic. Macros such
  20. as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
  21. surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
  22. PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
  23. HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
  24. sure both macros are undefined; an emulation function will then be used. */
  25. /* By default, the \R escape sequence matches any Unicode line ending
  26. character or sequence of characters. If BSR_ANYCRLF is defined (to any
  27. value), this is changed so that backslash-R matches only CR, LF, or CRLF.
  28. The build-time default can be overridden by the user of PCRE2 at runtime.
  29. */
  30. /* #undef BSR_ANYCRLF */
  31. /* Define to any value to disable the use of the z and t modifiers in
  32. formatting settings such as %zu or %td (this is rarely needed). */
  33. /* #undef DISABLE_PERCENT_ZT */
  34. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  35. character codes, define this macro to any value. When EBCDIC is set, PCRE2
  36. assumes that all input strings are in EBCDIC. If you do not define this
  37. macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
  38. is not possible to build a version of PCRE2 that supports both EBCDIC and
  39. UTF-8/16/32. */
  40. /* #undef EBCDIC */
  41. /* In an EBCDIC environment, define this macro to any value to arrange for the
  42. NL character to be 0x25 instead of the default 0x15. NL plays the role that
  43. LF does in an ASCII/Unicode environment. */
  44. /* #undef EBCDIC_NL25 */
  45. /* Define this if your compiler supports __attribute__((uninitialized)) */
  46. /* #undef HAVE_ATTRIBUTE_UNINITIALIZED */
  47. /* Define to 1 if you have the `bcopy' function. */
  48. /* #undef HAVE_BCOPY */
  49. /* Define to 1 if you have the <bzlib.h> header file. */
  50. /* #undef HAVE_BZLIB_H */
  51. /* Define to 1 if you have the <dirent.h> header file. */
  52. /* #undef HAVE_DIRENT_H */
  53. /* Define to 1 if you have the <dlfcn.h> header file. */
  54. /* #undef HAVE_DLFCN_H */
  55. /* Define to 1 if you have the <editline/readline.h> header file. */
  56. /* #undef HAVE_EDITLINE_READLINE_H */
  57. /* Define to 1 if you have the <edit/readline/readline.h> header file. */
  58. /* #undef HAVE_EDIT_READLINE_READLINE_H */
  59. /* Define to 1 if you have the <inttypes.h> header file. */
  60. #define HAVE_INTTYPES_H 1
  61. /* Define to 1 if you have the <limits.h> header file. */
  62. #define HAVE_LIMITS_H 1
  63. /* Define to 1 if you have the `memfd_create' function. */
  64. /* #undef HAVE_MEMFD_CREATE */
  65. /* Define to 1 if you have the `memmove' function. */
  66. #define HAVE_MEMMOVE 1
  67. /* Define to 1 if you have the <minix/config.h> header file. */
  68. /* #undef HAVE_MINIX_CONFIG_H */
  69. /* Define to 1 if you have the `mkostemp' function. */
  70. /* #undef HAVE_MKOSTEMP */
  71. /* Define if you have POSIX threads libraries and header files. */
  72. /* #undef HAVE_PTHREAD */
  73. /* Have PTHREAD_PRIO_INHERIT. */
  74. /* #undef HAVE_PTHREAD_PRIO_INHERIT */
  75. /* Define to 1 if you have the <readline.h> header file. */
  76. /* #undef HAVE_READLINE_H */
  77. /* Define to 1 if you have the <readline/history.h> header file. */
  78. /* #undef HAVE_READLINE_HISTORY_H */
  79. /* Define to 1 if you have the <readline/readline.h> header file. */
  80. /* #undef HAVE_READLINE_READLINE_H */
  81. /* Define to 1 if you have the `realpath' function. */
  82. /* #undef HAVE_REALPATH */
  83. /* Define to 1 if you have the `secure_getenv' function. */
  84. /* #undef HAVE_SECURE_GETENV */
  85. /* Define to 1 if you have the <stdint.h> header file. */
  86. #define HAVE_STDINT_H 1
  87. /* Define to 1 if you have the <stdio.h> header file. */
  88. #define HAVE_STDIO_H 1
  89. /* Define to 1 if you have the <stdlib.h> header file. */
  90. #define HAVE_STDLIB_H 1
  91. /* Define to 1 if you have the `strerror' function. */
  92. #define HAVE_STRERROR 1
  93. /* Define to 1 if you have the <strings.h> header file. */
  94. /* #undef HAVE_STRINGS_H */
  95. /* Define to 1 if you have the <string.h> header file. */
  96. #define HAVE_STRING_H 1
  97. /* Define to 1 if you have the <sys/stat.h> header file. */
  98. #define HAVE_SYS_STAT_H 1
  99. /* Define to 1 if you have the <sys/types.h> header file. */
  100. #define HAVE_SYS_TYPES_H 1
  101. /* Define to 1 if you have the <sys/wait.h> header file. */
  102. /* #undef HAVE_SYS_WAIT_H */
  103. /* Define to 1 if you have the <unistd.h> header file. */
  104. /* #undef HAVE_UNISTD_H */
  105. /* Define to 1 if the compiler supports simple visibility declarations. */
  106. /* #undef HAVE_VISIBILITY */
  107. /* Define to 1 if you have the <wchar.h> header file. */
  108. #define HAVE_WCHAR_H 1
  109. /* Define to 1 if you have the <windows.h> header file. */
  110. /* #undef HAVE_WINDOWS_H */
  111. /* Define to 1 if you have the <zlib.h> header file. */
  112. /* #undef HAVE_ZLIB_H */
  113. /* This limits the amount of memory that may be used while matching a pattern.
  114. It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
  115. to JIT matching. The value is in kibibytes (units of 1024 bytes). */
  116. #ifndef HEAP_LIMIT
  117. #define HEAP_LIMIT 20000000
  118. #endif
  119. /* The value of LINK_SIZE determines the number of bytes used to store links
  120. as offsets within the compiled regex. The default is 2, which allows for
  121. compiled patterns up to 65535 code units long. This covers the vast
  122. majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
  123. instead. This allows for longer patterns in extreme cases. */
  124. #ifndef LINK_SIZE
  125. #define LINK_SIZE 2
  126. #endif
  127. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  128. /* This is ignored unless you are using libtool. */
  129. #ifndef LT_OBJDIR
  130. #define LT_OBJDIR ".libs/"
  131. #endif
  132. /* The value of MATCH_LIMIT determines the default number of times the
  133. pcre2_match() function can record a backtrack position during a single
  134. matching attempt. The value is also used to limit a loop counter in
  135. pcre2_dfa_match(). There is a runtime interface for setting a different
  136. limit. The limit exists in order to catch runaway regular expressions that
  137. take for ever to determine that they do not match. The default is set very
  138. large so that it does not accidentally catch legitimate cases. */
  139. #ifndef MATCH_LIMIT
  140. #define MATCH_LIMIT 10000000
  141. #endif
  142. /* The above limit applies to all backtracks, whether or not they are nested.
  143. In some environments it is desirable to limit the nesting of backtracking
  144. (that is, the depth of tree that is searched) more strictly, in order to
  145. restrict the maximum amount of heap memory that is used. The value of
  146. MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
  147. must be less than the value of MATCH_LIMIT. The default is to use the same
  148. value as MATCH_LIMIT. There is a runtime method for setting a different
  149. limit. In the case of pcre2_dfa_match(), this limit controls the depth of
  150. the internal nested function calls that are used for pattern recursions,
  151. lookarounds, and atomic groups. */
  152. #ifndef MATCH_LIMIT_DEPTH
  153. #define MATCH_LIMIT_DEPTH MATCH_LIMIT
  154. #endif
  155. /* This limit is parameterized just in case anybody ever wants to change it.
  156. Care must be taken if it is increased, because it guards against integer
  157. overflow caused by enormously large patterns. */
  158. #ifndef MAX_NAME_COUNT
  159. #define MAX_NAME_COUNT 10000
  160. #endif
  161. /* This limit is parameterized just in case anybody ever wants to change it.
  162. Care must be taken if it is increased, because it guards against integer
  163. overflow caused by enormously large patterns. */
  164. #ifndef MAX_NAME_SIZE
  165. #define MAX_NAME_SIZE 32
  166. #endif
  167. /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
  168. /* #undef NEVER_BACKSLASH_C */
  169. /* The value of NEWLINE_DEFAULT determines the default newline character
  170. sequence. PCRE2 client programs can override this by selecting other values
  171. at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
  172. (ANYCRLF), and 6 (NUL). */
  173. #ifndef NEWLINE_DEFAULT
  174. #define NEWLINE_DEFAULT 2
  175. #endif
  176. /* Name of package */
  177. #define PACKAGE "pcre2"
  178. /* Define to the address where bug reports for this package should be sent. */
  179. #define PACKAGE_BUGREPORT ""
  180. /* Define to the full name of this package. */
  181. #define PACKAGE_NAME "PCRE2"
  182. /* Define to the full name and version of this package. */
  183. #define PACKAGE_STRING "PCRE2 10.40"
  184. /* Define to the one symbol short name of this package. */
  185. #define PACKAGE_TARNAME "pcre2"
  186. /* Define to the home page for this package. */
  187. #define PACKAGE_URL ""
  188. /* Define to the version of this package. */
  189. #define PACKAGE_VERSION "10.40"
  190. /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
  191. parentheses (of any kind) in a pattern. This limits the amount of system
  192. stack that is used while compiling a pattern. */
  193. #ifndef PARENS_NEST_LIMIT
  194. #define PARENS_NEST_LIMIT 250
  195. #endif
  196. /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
  197. pcre2grep to hold parts of the file it is searching. The buffer will be
  198. expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
  199. very long lines. The actual amount of memory used by pcre2grep is three
  200. times this number, because it allows for the buffering of "before" and
  201. "after" lines. */
  202. #ifndef PCRE2GREP_BUFSIZE
  203. #define PCRE2GREP_BUFSIZE 20480
  204. #endif
  205. /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
  206. used by pcre2grep to hold parts of the file it is searching. The actual
  207. amount of memory used by pcre2grep is three times this number, because it
  208. allows for the buffering of "before" and "after" lines. */
  209. #ifndef PCRE2GREP_MAX_BUFSIZE
  210. #define PCRE2GREP_MAX_BUFSIZE 1048576
  211. #endif
  212. /* Define to any value to include debugging code. */
  213. /* #undef PCRE2_DEBUG */
  214. /* If you are compiling for a system other than a Unix-like system or
  215. Win32, and it needs some magic to be inserted before the definition
  216. of a function that is exported by the library, define this macro to
  217. contain the relevant magic. If you do not define this macro, a suitable
  218. __declspec value is used for Windows systems; in other environments
  219. "extern" is used for a C compiler and "extern C" for a C++ compiler.
  220. This macro apears at the start of every exported function that is part
  221. of the external API. It does not appear on functions that are "external"
  222. in the C sense, but which are internal to the library. */
  223. /* #undef PCRE2_EXP_DEFN */
  224. /* Define to any value if linking statically (TODO: make nice with Libtool) */
  225. #define PCRE2_STATIC 1
  226. /* Define to necessary symbol if this constant uses a non-standard name on
  227. your system. */
  228. /* #undef PTHREAD_CREATE_JOINABLE */
  229. /* Define to any non-zero number to enable support for SELinux compatible
  230. executable memory allocator in JIT. Note that this will have no effect
  231. unless SUPPORT_JIT is also defined. */
  232. /* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
  233. /* Define to 1 if all of the C90 standard headers exist (not just the ones
  234. required in a freestanding environment). This macro is provided for
  235. backward compatibility; new code need not use it. */
  236. /* #undef STDC_HEADERS */
  237. /* Define to any value to enable support for Just-In-Time compiling. */
  238. #undef SUPPORT_JIT /**/
  239. /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
  240. is able to handle .bz2 files. */
  241. /* #undef SUPPORT_LIBBZ2 */
  242. /* Define to any value to allow pcre2test to be linked with libedit. */
  243. /* #undef SUPPORT_LIBEDIT */
  244. /* Define to any value to allow pcre2test to be linked with libreadline. */
  245. /* #undef SUPPORT_LIBREADLINE */
  246. /* Define to any value to allow pcre2grep to be linked with libz, so that it
  247. is able to handle .gz files. */
  248. /* #undef SUPPORT_LIBZ */
  249. /* Define to any value to enable callout script support in pcre2grep. */
  250. /* #undef SUPPORT_PCRE2GREP_CALLOUT */
  251. /* Define to any value to enable fork support in pcre2grep callout scripts.
  252. This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.
  253. */
  254. /* #undef SUPPORT_PCRE2GREP_CALLOUT_FORK */
  255. /* Define to any value to enable JIT support in pcre2grep. Note that this will
  256. have no effect unless SUPPORT_JIT is also defined. */
  257. /* #undef SUPPORT_PCRE2GREP_JIT */
  258. /* Define to any value to enable the 16 bit PCRE2 library. */
  259. #define SUPPORT_PCRE2_16 /**/
  260. /* Define to any value to enable the 32 bit PCRE2 library. */
  261. #undef SUPPORT_PCRE2_32 /**/
  262. /* Define to any value to enable the 8 bit PCRE2 library. */
  263. #undef SUPPORT_PCRE2_8 /**/
  264. /* Define to any value to enable support for Unicode and UTF encoding. This
  265. will work even in an EBCDIC environment, but it is incompatible with the
  266. EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
  267. ASCII/Unicode, but not both at once. */
  268. #define SUPPORT_UNICODE /**/
  269. /* Define to any value for valgrind support to find invalid memory reads. */
  270. /* #undef SUPPORT_VALGRIND */
  271. /* Enable extensions on AIX 3, Interix. */
  272. #ifndef _ALL_SOURCE
  273. # define _ALL_SOURCE 1
  274. #endif
  275. /* Enable general extensions on macOS. */
  276. #ifndef _DARWIN_C_SOURCE
  277. # define _DARWIN_C_SOURCE 1
  278. #endif
  279. /* Enable general extensions on Solaris. */
  280. #ifndef __EXTENSIONS__
  281. # define __EXTENSIONS__ 1
  282. #endif
  283. /* Enable GNU extensions on systems that have them. */
  284. #ifndef _GNU_SOURCE
  285. # define _GNU_SOURCE 1
  286. #endif
  287. /* Enable X/Open compliant socket functions that do not require linking
  288. with -lxnet on HP-UX 11.11. */
  289. #ifndef _HPUX_ALT_XOPEN_SOCKET_API
  290. # define _HPUX_ALT_XOPEN_SOCKET_API 1
  291. #endif
  292. /* Identify the host operating system as Minix.
  293. This macro does not affect the system headers' behavior.
  294. A future release of Autoconf may stop defining this macro. */
  295. #ifndef _MINIX
  296. /* # undef _MINIX */
  297. #endif
  298. /* Enable general extensions on NetBSD.
  299. Enable NetBSD compatibility extensions on Minix. */
  300. #ifndef _NETBSD_SOURCE
  301. # define _NETBSD_SOURCE 1
  302. #endif
  303. /* Enable OpenBSD compatibility extensions on NetBSD.
  304. Oddly enough, this does nothing on OpenBSD. */
  305. #ifndef _OPENBSD_SOURCE
  306. # define _OPENBSD_SOURCE 1
  307. #endif
  308. /* Define to 1 if needed for POSIX-compatible behavior. */
  309. #ifndef _POSIX_SOURCE
  310. /* # undef _POSIX_SOURCE */
  311. #endif
  312. /* Define to 2 if needed for POSIX-compatible behavior. */
  313. #ifndef _POSIX_1_SOURCE
  314. /* # undef _POSIX_1_SOURCE */
  315. #endif
  316. /* Enable POSIX-compatible threading on Solaris. */
  317. #ifndef _POSIX_PTHREAD_SEMANTICS
  318. # define _POSIX_PTHREAD_SEMANTICS 1
  319. #endif
  320. /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
  321. #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  322. # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
  323. #endif
  324. /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
  325. #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  326. # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
  327. #endif
  328. /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
  329. #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
  330. # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
  331. #endif
  332. /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
  333. #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
  334. # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
  335. #endif
  336. /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
  337. #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
  338. # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
  339. #endif
  340. /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
  341. #ifndef __STDC_WANT_LIB_EXT2__
  342. # define __STDC_WANT_LIB_EXT2__ 1
  343. #endif
  344. /* Enable extensions specified by ISO/IEC 24747:2009. */
  345. #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
  346. # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
  347. #endif
  348. /* Enable extensions on HP NonStop. */
  349. #ifndef _TANDEM_SOURCE
  350. # define _TANDEM_SOURCE 1
  351. #endif
  352. /* Enable X/Open extensions. Define to 500 only if necessary
  353. to make mbstate_t available. */
  354. #ifndef _XOPEN_SOURCE
  355. /* # undef _XOPEN_SOURCE */
  356. #endif
  357. /* Version number of package */
  358. #define VERSION "10.40"
  359. /* Define to empty if `const' does not conform to ANSI C. */
  360. /* #undef const */
  361. /* Define to the type of a signed integer type of width exactly 64 bits if
  362. such a type exists and the standard includes do not define it. */
  363. /* #undef int64_t */
  364. /* Define to `unsigned int' if <sys/types.h> does not define. */
  365. /* #undef size_t */