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