config.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /* config.h. Generated from config.h.in by configure. */
  2. /* config.h.in. Generated from configure.ac by autoheader. */
  3. /* On Unix-like systems config.h.in is converted by "configure" into config.h.
  4. Some other environments also support the use of "configure". PCRE is written in
  5. Standard C, but there are a few non-standard things it can cope with, allowing
  6. it to run on SunOS4 and other "close to standard" systems.
  7. If you are going to build PCRE "by hand" on a system without "configure" you
  8. should copy the distributed config.h.generic to config.h, and then set up the
  9. macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
  10. all of your compile commands, so that config.h is included at the start of
  11. every source.
  12. Alternatively, you can avoid editing by using -D on the compiler command line
  13. to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
  14. PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
  15. HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
  16. them both to 0; an emulation function will be used. */
  17. /* By default, the \R escape sequence matches any Unicode line ending
  18. character or sequence of characters. If BSR_ANYCRLF is defined, this is
  19. changed so that backslash-R matches only CR, LF, or CRLF. The build- time
  20. default can be overridden by the user of PCRE at runtime. On systems that
  21. support it, "configure" can be used to override the default. */
  22. /* #undef BSR_ANYCRLF */
  23. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  24. character codes, define this macro as 1. On systems that can use
  25. "configure", this can be done via --enable-ebcdic. */
  26. /* #undef EBCDIC */
  27. /* Define to 1 if you have the `bcopy' function. */
  28. /* #undef HAVE_BCOPY */
  29. /* Define to 1 if you have the <bits/type_traits.h> header file. */
  30. #define HAVE_BITS_TYPE_TRAITS_H 1
  31. /* Define to 1 if you have the <bzlib.h> header file. */
  32. /* #undef HAVE_BZLIB_H */
  33. /* Define to 1 if you have the <dirent.h> header file. */
  34. #define HAVE_DIRENT_H 1
  35. /* Define to 1 if you have the <dlfcn.h> header file. */
  36. /* #undef HAVE_DLFCN_H */
  37. /* Define to 1 if you have the <inttypes.h> header file. */
  38. #define HAVE_INTTYPES_H 1
  39. /* Define to 1 if you have the <limits.h> header file. */
  40. #define HAVE_LIMITS_H 1
  41. /* Define to 1 if the system has the type `long long'. */
  42. #define HAVE_LONG_LONG 1
  43. /* Define to 1 if you have the `memmove' function. */
  44. #define HAVE_MEMMOVE 1
  45. /* Define to 1 if you have the <memory.h> header file. */
  46. #define HAVE_MEMORY_H 1
  47. /* Define to 1 if you have the <readline/history.h> header file. */
  48. /* #undef HAVE_READLINE_HISTORY_H */
  49. /* Define to 1 if you have the <readline/readline.h> header file. */
  50. /* #undef HAVE_READLINE_READLINE_H */
  51. /* Define to 1 if you have the <stdint.h> header file. */
  52. #define HAVE_STDINT_H 1
  53. /* Define to 1 if you have the <stdlib.h> header file. */
  54. #define HAVE_STDLIB_H 1
  55. /* Define to 1 if you have the `strerror' function. */
  56. #define HAVE_STRERROR 1
  57. /* Define to 1 if you have the <string> header file. */
  58. #define HAVE_STRING 1
  59. /* Define to 1 if you have the <strings.h> header file. */
  60. #define HAVE_STRINGS_H 1
  61. /* Define to 1 if you have the <string.h> header file. */
  62. #define HAVE_STRING_H 1
  63. /* Define to 1 if you have the `strtoll' function. */
  64. #if defined(SN_TARGET_PS3)
  65. #define HAVE_STRTOLL 1
  66. #endif
  67. /* Define to 1 if you have the `strtoq' function. */
  68. /* Both Mac and Linux support strtoq - Andrew Galante, GG 8/2/2009 */
  69. #ifdef __GNUC__
  70. #define HAVE_STRTOQ 1
  71. #endif
  72. /* Define to 1 if you have the <sys/stat.h> header file. */
  73. #define HAVE_SYS_STAT_H 1
  74. /* Define to 1 if you have the <sys/types.h> header file. */
  75. #define HAVE_SYS_TYPES_H 1
  76. /* Define to 1 if you have the <type_traits.h> header file. */
  77. /* #undef HAVE_TYPE_TRAITS_H */
  78. /* Define to 1 if you have the <unistd.h> header file. */
  79. #define HAVE_UNISTD_H 1
  80. /* Define to 1 if the system has the type `unsigned long long'. */
  81. #define HAVE_UNSIGNED_LONG_LONG 1
  82. /* Define to 1 if you have the <windows.h> header file. */
  83. #define HAVE_WINDOWS_H 1
  84. /* Define to 1 if you have the <zlib.h> header file. */
  85. /* #undef HAVE_ZLIB_H */
  86. /* Define to 1 if you have the `_strtoi64' function. */
  87. /* Neither Mac nor Linux support _strtoi64 - Andrew Galante, GG 8/2/2009 */
  88. #ifndef __GNUC__
  89. #define HAVE__STRTOI64 1
  90. #endif
  91. /* The value of LINK_SIZE determines the number of bytes used to store links
  92. as offsets within the compiled regex. The default is 2, which allows for
  93. compiled patterns up to 64K long. This covers the vast majority of cases.
  94. However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
  95. for longer patterns in extreme cases. On systems that support it,
  96. "configure" can be used to override this default. */
  97. #define LINK_SIZE 2
  98. /* The value of MATCH_LIMIT determines the default number of times the
  99. internal match() function can be called during a single execution of
  100. pcre_exec(). There is a runtime interface for setting a different limit.
  101. The limit exists in order to catch runaway regular expressions that take
  102. for ever to determine that they do not match. The default is set very large
  103. so that it does not accidentally catch legitimate cases. On systems that
  104. support it, "configure" can be used to override this default default. */
  105. #define MATCH_LIMIT 10000000
  106. /* The above limit applies to all calls of match(), whether or not they
  107. increase the recursion depth. In some environments it is desirable to limit
  108. the depth of recursive calls of match() more strictly, in order to restrict
  109. the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
  110. used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
  111. match(). To have any useful effect, it must be less than the value of
  112. MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
  113. a runtime method for setting a different limit. On systems that support it,
  114. "configure" can be used to override the default. */
  115. #define MATCH_LIMIT_RECURSION MATCH_LIMIT
  116. /* This limit is parameterized just in case anybody ever wants to change it.
  117. Care must be taken if it is increased, because it guards against integer
  118. overflow caused by enormously large patterns. */
  119. #define MAX_NAME_COUNT 10000
  120. /* This limit is parameterized just in case anybody ever wants to change it.
  121. Care must be taken if it is increased, because it guards against integer
  122. overflow caused by enormously large patterns. */
  123. #define MAX_NAME_SIZE 32
  124. /* The value of NEWLINE determines the newline character sequence. On systems
  125. that support it, "configure" can be used to override the default, which is
  126. 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
  127. (ANYCRLF). */
  128. #define NEWLINE 10
  129. /* PCRE uses recursive function calls to handle backtracking while matching.
  130. This can sometimes be a problem on systems that have stacks of limited
  131. size. Define NO_RECURSE to get a version that doesn't use recursion in the
  132. match() function; instead it creates its own stack by steam using
  133. pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
  134. the comments and other stuff just above the match() function. On systems
  135. that support it, "configure" can be used to set this in the Makefile (use
  136. --disable-stack-for-recursion). */
  137. /* #undef NO_RECURSE */
  138. /* Name of package */
  139. #define PACKAGE "pcre"
  140. /* Define to the address where bug reports for this package should be sent. */
  141. #define PACKAGE_BUGREPORT ""
  142. /* Define to the full name of this package. */
  143. #define PACKAGE_NAME "PCRE"
  144. /* Define to the full name and version of this package. */
  145. #define PACKAGE_STRING "PCRE 7.6"
  146. /* Define to the one symbol short name of this package. */
  147. #define PACKAGE_TARNAME "pcre"
  148. /* Define to the version of this package. */
  149. #define PACKAGE_VERSION "7.6"
  150. /* If you are compiling for a system other than a Unix-like system or
  151. Win32, and it needs some magic to be inserted before the definition
  152. of a function that is exported by the library, define this macro to
  153. contain the relevant magic. If you do not define this macro, it
  154. defaults to "extern" for a C compiler and "extern C" for a C++
  155. compiler on non-Win32 systems. This macro apears at the start of
  156. every exported function that is part of the external API. It does
  157. not appear on functions that are "external" in the C sense, but
  158. which are internal to the library. */
  159. /* #undef PCRE_EXP_DEFN */
  160. /* Define if linking statically (TODO: make nice with Libtool) */
  161. #define PCRE_STATIC 1
  162. /* When calling PCRE via the POSIX interface, additional working storage is
  163. required for holding the pointers to capturing substrings because PCRE
  164. requires three integers per substring, whereas the POSIX interface provides
  165. only two. If the number of expected substrings is small, the wrapper
  166. function uses space on the stack, because this is faster than using
  167. malloc() for each call. The threshold above which the stack is no longer
  168. used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
  169. "configure" can be used to override this default. */
  170. #define POSIX_MALLOC_THRESHOLD 10
  171. /* Define to 1 if you have the ANSI C header files. */
  172. #define STDC_HEADERS 1
  173. /* Define to allow pcregrep to be linked with libbz2, so that it is able to
  174. handle .bz2 files. */
  175. /* #undef SUPPORT_LIBBZ2 */
  176. /* Define to allow pcretest to be linked with libreadline. */
  177. /* #undef SUPPORT_LIBREADLINE */
  178. /* Define to allow pcregrep to be linked with libz, so that it is able to
  179. handle .gz files. */
  180. /* #undef SUPPORT_LIBZ */
  181. /* Define to enable support for Unicode properties */
  182. /* #undef SUPPORT_UCP */
  183. /* Define to enable support for the UTF-8 Unicode encoding. */
  184. /* #undef SUPPORT_UTF8 */
  185. /* Version number of package */
  186. #define VERSION "7.6"
  187. /* Define to empty if `const' does not conform to ANSI C. */
  188. /* #undef const */
  189. /* Define to `unsigned int' if <sys/types.h> does not define. */
  190. /* #undef size_t */