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