new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / external / pcre2-10.32 / src / config.h
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 /* If you are compiling for a system that uses EBCDIC instead of ASCII
40    character codes, define this macro to any value. When EBCDIC is set, PCRE2
41    assumes that all input strings are in EBCDIC. If you do not define this
42    macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
43    is not possible to build a version of PCRE2 that supports both EBCDIC and
44    UTF-8/16/32. */
45 /* #undef EBCDIC */
46
47 /* In an EBCDIC environment, define this macro to any value to arrange for the
48    NL character to be 0x25 instead of the default 0x15. NL plays the role that
49    LF does in an ASCII/Unicode environment. */
50 /* #undef EBCDIC_NL25 */
51
52 /* Define to 1 if you have the `bcopy' function. */
53 #define HAVE_BCOPY 1
54
55 /* Define to 1 if you have the <bzlib.h> header file. */
56 #define HAVE_BZLIB_H 1
57
58 /* Define to 1 if you have the <dirent.h> header file. */
59 #define HAVE_DIRENT_H 1
60
61 /* Define to 1 if you have the <dlfcn.h> header file. */
62 #define HAVE_DLFCN_H 1
63
64 /* Define to 1 if you have the <editline/readline.h> header file. */
65 /* #undef HAVE_EDITLINE_READLINE_H */
66
67 /* Define to 1 if you have the <edit/readline/readline.h> header file. */
68 /* #undef HAVE_EDIT_READLINE_READLINE_H */
69
70 /* Define to 1 if you have the <inttypes.h> header file. */
71 #define HAVE_INTTYPES_H 1
72
73 /* Define to 1 if you have the <limits.h> header file. */
74 #define HAVE_LIMITS_H 1
75
76 /* Define to 1 if you have the `memmove' function. */
77 #define HAVE_MEMMOVE 1
78
79 /* Define to 1 if you have the <memory.h> header file. */
80 #define HAVE_MEMORY_H 1
81
82 /* Define to 1 if you have the `mkostemp' function. */
83 #define HAVE_MKOSTEMP 1
84
85 /* Define if you have POSIX threads libraries and header files. */
86 #define HAVE_PTHREAD 1
87
88 /* Have PTHREAD_PRIO_INHERIT. */
89 #define HAVE_PTHREAD_PRIO_INHERIT 1
90
91 /* Define to 1 if you have the <readline/history.h> header file. */
92 /* #undef HAVE_READLINE_HISTORY_H */
93
94 /* Define to 1 if you have the <readline/readline.h> header file. */
95 /* #undef HAVE_READLINE_READLINE_H */
96
97 /* Define to 1 if you have the `secure_getenv' function. */
98 #define HAVE_SECURE_GETENV 1
99
100 /* Define to 1 if you have the <stdint.h> header file. */
101 #define HAVE_STDINT_H 1
102
103 /* Define to 1 if you have the <stdlib.h> header file. */
104 #define HAVE_STDLIB_H 1
105
106 /* Define to 1 if you have the `strerror' function. */
107 #define HAVE_STRERROR 1
108
109 /* Define to 1 if you have the <strings.h> header file. */
110 #define HAVE_STRINGS_H 1
111
112 /* Define to 1 if you have the <string.h> header file. */
113 #define HAVE_STRING_H 1
114
115 /* Define to 1 if you have the <sys/stat.h> header file. */
116 #define HAVE_SYS_STAT_H 1
117
118 /* Define to 1 if you have the <sys/types.h> header file. */
119 #define HAVE_SYS_TYPES_H 1
120
121 /* Define to 1 if you have the <sys/wait.h> header file. */
122 #define HAVE_SYS_WAIT_H 1
123
124 /* Define to 1 if you have the <unistd.h> header file. */
125 #define HAVE_UNISTD_H 1
126
127 /* Define to 1 if the compiler supports simple visibility declarations. */
128 #define HAVE_VISIBILITY 1
129
130 /* Define to 1 if you have the <windows.h> header file. */
131 /* #undef HAVE_WINDOWS_H */
132
133 /* Define to 1 if you have the <zlib.h> header file. */
134 #define HAVE_ZLIB_H 1
135
136 /* This limits the amount of memory that may be used while matching a pattern.
137    It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
138    to JIT matching. The value is in kibibytes (units of 1024 bytes). */
139 #define HEAP_LIMIT 20000000
140
141 /* The value of LINK_SIZE determines the number of bytes used to store links
142    as offsets within the compiled regex. The default is 2, which allows for
143    compiled patterns up to 65535 code units long. This covers the vast
144    majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
145    instead. This allows for longer patterns in extreme cases. */
146 #define LINK_SIZE 2
147
148 /* Define to the sub-directory where libtool stores uninstalled libraries. */
149 #define LT_OBJDIR ".libs/"
150
151 /* The value of MATCH_LIMIT determines the default number of times the
152    pcre2_match() function can record a backtrack position during a single
153    matching attempt. The value is also used to limit a loop counter in
154    pcre2_dfa_match(). There is a runtime interface for setting a different
155    limit. The limit exists in order to catch runaway regular expressions that
156    take for ever to determine that they do not match. The default is set very
157    large so that it does not accidentally catch legitimate cases. */
158 #define MATCH_LIMIT 10000000
159
160 /* The above limit applies to all backtracks, whether or not they are nested.
161    In some environments it is desirable to limit the nesting of backtracking
162    (that is, the depth of tree that is searched) more strictly, in order to
163    restrict the maximum amount of heap memory that is used. The value of
164    MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
165    must be less than the value of MATCH_LIMIT. The default is to use the same
166    value as MATCH_LIMIT. There is a runtime method for setting a different
167    limit. In the case of pcre2_dfa_match(), this limit controls the depth of
168    the internal nested function calls that are used for pattern recursions,
169    lookarounds, and atomic groups. */
170 #define MATCH_LIMIT_DEPTH MATCH_LIMIT
171
172 /* This limit is parameterized just in case anybody ever wants to change it.
173    Care must be taken if it is increased, because it guards against integer
174    overflow caused by enormously large patterns. */
175 #define MAX_NAME_COUNT 10000
176
177 /* This limit is parameterized just in case anybody ever wants to change it.
178    Care must be taken if it is increased, because it guards against integer
179    overflow caused by enormously large patterns. */
180 #define MAX_NAME_SIZE 32
181
182 /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
183 /* #undef NEVER_BACKSLASH_C */
184
185 /* The value of NEWLINE_DEFAULT determines the default newline character
186    sequence. PCRE2 client programs can override this by selecting other values
187    at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
188    (ANYCRLF), and 6 (NUL). */
189 #define NEWLINE_DEFAULT 2
190
191 /* Name of package */
192 #define PACKAGE "pcre2"
193
194 /* Define to the address where bug reports for this package should be sent. */
195 #define PACKAGE_BUGREPORT ""
196
197 /* Define to the full name of this package. */
198 #define PACKAGE_NAME "PCRE2"
199
200 /* Define to the full name and version of this package. */
201 #define PACKAGE_STRING "PCRE2 10.32"
202
203 /* Define to the one symbol short name of this package. */
204 #define PACKAGE_TARNAME "pcre2"
205
206 /* Define to the home page for this package. */
207 #define PACKAGE_URL ""
208
209 /* Define to the version of this package. */
210 #define PACKAGE_VERSION "10.32"
211
212 /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
213    parentheses (of any kind) in a pattern. This limits the amount of system
214    stack that is used while compiling a pattern. */
215 #define PARENS_NEST_LIMIT 250
216
217 /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
218    pcre2grep to hold parts of the file it is searching. The buffer will be
219    expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
220    very long lines. The actual amount of memory used by pcre2grep is three
221    times this number, because it allows for the buffering of "before" and
222    "after" lines. */
223 #define PCRE2GREP_BUFSIZE 20480
224
225 /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
226    used by pcre2grep to hold parts of the file it is searching. The actual
227    amount of memory used by pcre2grep is three times this number, because it
228    allows for the buffering of "before" and "after" lines. */
229 #define PCRE2GREP_MAX_BUFSIZE 1048576
230
231 /* to make a symbol visible */
232 #define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility ("default")))
233
234 /* to make a symbol visible */
235 #define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility ("default")))
236
237 /* Define to any value to include debugging code. */
238 /* #undef PCRE2_DEBUG */
239
240 /* to make a symbol visible */
241 #define PCRE2_EXP_DECL extern __attribute__ ((visibility ("default")))
242
243
244 /* If you are compiling for a system other than a Unix-like system or
245    Win32, and it needs some magic to be inserted before the definition
246    of a function that is exported by the library, define this macro to
247    contain the relevant magic. If you do not define this macro, a suitable
248     __declspec value is used for Windows systems; in other environments
249    "extern" is used for a C compiler and "extern C" for a C++ compiler.
250    This macro apears at the start of every exported function that is part
251    of the external API. It does not appear on functions that are "external"
252    in the C sense, but which are internal to the library. */
253 #define PCRE2_EXP_DEFN __attribute__ ((visibility ("default")))
254
255 /* Define to any value if linking statically (TODO: make nice with Libtool) */
256 #define PCRE2_STATIC 1
257
258 /* Define to necessary symbol if this constant uses a non-standard name on
259    your system. */
260 /* #undef PTHREAD_CREATE_JOINABLE */
261
262 /* Define to any non-zero number to enable support for SELinux compatible
263    executable memory allocator in JIT. Note that this will have no effect
264    unless SUPPORT_JIT is also defined. */
265 /* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
266
267 /* Define to 1 if you have the ANSI C header files. */
268 #define STDC_HEADERS 1
269
270 /* Define to any value to enable support for Just-In-Time compiling. */
271 #define SUPPORT_JIT /**/
272
273 /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
274    is able to handle .bz2 files. */
275 /* #undef SUPPORT_LIBBZ2 */
276
277 /* Define to any value to allow pcre2test to be linked with libedit. */
278 /* #undef SUPPORT_LIBEDIT */
279
280 /* Define to any value to allow pcre2test to be linked with libreadline. */
281 /* #undef SUPPORT_LIBREADLINE */
282
283 /* Define to any value to allow pcre2grep to be linked with libz, so that it
284    is able to handle .gz files. */
285 /* #undef SUPPORT_LIBZ */
286
287 /* Define to any value to enable callout script support in pcre2grep. */
288 #define SUPPORT_PCRE2GREP_CALLOUT /**/
289
290 /* Define to any value to enable JIT support in pcre2grep. Note that this will
291    have no effect unless SUPPORT_JIT is also defined. */
292 #define SUPPORT_PCRE2GREP_JIT /**/
293
294 /* Define to any value to enable the 16 bit PCRE2 library. */
295 /* #undef SUPPORT_PCRE2_16 */
296
297 /* Define to any value to enable the 32 bit PCRE2 library. */
298 /* #undef SUPPORT_PCRE2_32 */
299
300 /* Define to any value to enable the 8 bit PCRE2 library. */
301 #define SUPPORT_PCRE2_8 /**/
302
303 /* Define to any value to enable support for Unicode and UTF encoding. This
304    will work even in an EBCDIC environment, but it is incompatible with the
305    EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
306    ASCII/Unicode, but not both at once. */
307 #define SUPPORT_UNICODE /**/
308
309 /* Define to any value for valgrind support to find invalid memory reads. */
310 /* #undef SUPPORT_VALGRIND */
311
312 /* Enable extensions on AIX 3, Interix.  */
313 #ifndef _ALL_SOURCE
314 # define _ALL_SOURCE 1
315 #endif
316 /* Enable GNU extensions on systems that have them.  */
317 #ifndef _GNU_SOURCE
318 # define _GNU_SOURCE 1
319 #endif
320 /* Enable threading extensions on Solaris.  */
321 #ifndef _POSIX_PTHREAD_SEMANTICS
322 # define _POSIX_PTHREAD_SEMANTICS 1
323 #endif
324 /* Enable extensions on HP NonStop.  */
325 #ifndef _TANDEM_SOURCE
326 # define _TANDEM_SOURCE 1
327 #endif
328 /* Enable general extensions on Solaris.  */
329 #ifndef __EXTENSIONS__
330 # define __EXTENSIONS__ 1
331 #endif
332
333
334 /* Version number of package */
335 #define VERSION "10.32"
336
337 /* Define to 1 if on MINIX. */
338 /* #undef _MINIX */
339
340 /* Define to 2 if the system does not provide POSIX.1 features except with
341    this defined. */
342 /* #undef _POSIX_1_SOURCE */
343
344 /* Define to 1 if you need to in order for `stat' and other things to work. */
345 /* #undef _POSIX_SOURCE */
346
347 /* Define to empty if `const' does not conform to ANSI C. */
348 /* #undef const */
349
350 /* Define to the type of a signed integer type of width exactly 64 bits if
351    such a type exists and the standard includes do not define it. */
352 /* #undef int64_t */
353
354 /* Define to `unsigned int' if <sys/types.h> does not define. */
355 /* #undef size_t */