Back to index

php5  5.3.10
config.h
Go to the documentation of this file.
00001 
00002 #include <php_compat.h>
00003 
00004 #ifndef PHP_WIN32
00005 # include <php_config.h>
00006 #endif
00007 
00008 #undef PACKAGE_NAME
00009 #undef PACKAGE_VERSION
00010 #undef PACKAGE_TARNAME
00011 #undef PACKAGE_STRING
00012 
00013 #define SUPPORT_UCP
00014 #define SUPPORT_UTF8
00015 
00016 #if defined(__GNUC__) && __GNUC__ >= 4
00017 # ifdef __cplusplus
00018 #  define PCRE_EXP_DECL            extern "C" __attribute__ ((visibility("default")))
00019 # else
00020 #  define PCRE_EXP_DECL            extern __attribute__ ((visibility("default")))
00021 # endif
00022 # define PCRE_EXP_DEFN             __attribute__ ((visibility("default")))
00023 # define PCRE_EXP_DATA_DEFN __attribute__ ((visibility("default")))
00024 #endif
00025 
00026 
00027 /* Exclude these below definitions when building within PHP */
00028 #ifndef ZEND_API
00029 
00030 /* config.h.  Generated from config.h.in by configure.  */
00031 /* config.h.in.  Generated from configure.ac by autoheader.  */
00032 
00033 
00034 /* On Unix-like systems config.h.in is converted by "configure" into config.h.
00035 Some other environments also support the use of "configure". PCRE is written in
00036 Standard C, but there are a few non-standard things it can cope with, allowing
00037 it to run on SunOS4 and other "close to standard" systems.
00038 
00039 If you are going to build PCRE "by hand" on a system without "configure" you
00040 should copy the distributed config.h.generic to config.h, and then set up the
00041 macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
00042 all of your compile commands, so that config.h is included at the start of
00043 every source.
00044 
00045 Alternatively, you can avoid editing by using -D on the compiler command line
00046 to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
00047 
00048 PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
00049 HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
00050 them both to 0; an emulation function will be used. */
00051 
00052 /* By default, the \R escape sequence matches any Unicode line ending
00053    character or sequence of characters. If BSR_ANYCRLF is defined, this is
00054    changed so that backslash-R matches only CR, LF, or CRLF. The build- time
00055    default can be overridden by the user of PCRE at runtime. On systems that
00056    support it, "configure" can be used to override the default. */
00057 /* #undef BSR_ANYCRLF */
00058 
00059 /* If you are compiling for a system that uses EBCDIC instead of ASCII
00060    character codes, define this macro as 1. On systems that can use
00061    "configure", this can be done via --enable-ebcdic. PCRE will then assume
00062    that all input strings are in EBCDIC. If you do not define this macro, PCRE
00063    will assume input strings are ASCII or UTF-8 Unicode. It is not possible to
00064    build a version of PCRE that supports both EBCDIC and UTF-8. */
00065 /* #undef EBCDIC */
00066 
00067 /* Define to 1 if you have the `bcopy' function. */
00068 #ifndef HAVE_BCOPY
00069 #define HAVE_BCOPY 1
00070 #endif
00071 
00072 /* Define to 1 if you have the <bits/type_traits.h> header file. */
00073 /* #undef HAVE_BITS_TYPE_TRAITS_H */
00074 
00075 /* Define to 1 if you have the <bzlib.h> header file. */
00076 #ifndef HAVE_BZLIB_H
00077 #define HAVE_BZLIB_H 1
00078 #endif
00079 
00080 /* Define to 1 if you have the <dirent.h> header file. */
00081 #ifndef HAVE_DIRENT_H
00082 #define HAVE_DIRENT_H 1
00083 #endif
00084 
00085 /* Define to 1 if you have the <dlfcn.h> header file. */
00086 #ifndef HAVE_DLFCN_H
00087 #define HAVE_DLFCN_H 1
00088 #endif
00089 
00090 /* Define to 1 if you have the <inttypes.h> header file. */
00091 #ifndef HAVE_INTTYPES_H
00092 #define HAVE_INTTYPES_H 1
00093 #endif
00094 
00095 /* Define to 1 if you have the <limits.h> header file. */
00096 #ifndef HAVE_LIMITS_H
00097 #define HAVE_LIMITS_H 1
00098 #endif
00099 
00100 /* Define to 1 if the system has the type `long long'. */
00101 #ifndef HAVE_LONG_LONG
00102 #define HAVE_LONG_LONG 1
00103 #endif
00104 
00105 /* Define to 1 if you have the `memmove' function. */
00106 #ifndef HAVE_MEMMOVE
00107 #define HAVE_MEMMOVE 1
00108 #endif
00109 
00110 /* Define to 1 if you have the <memory.h> header file. */
00111 #ifndef HAVE_MEMORY_H
00112 #define HAVE_MEMORY_H 1
00113 #endif
00114 
00115 /* Define to 1 if you have the <readline/history.h> header file. */
00116 #ifndef HAVE_READLINE_HISTORY_H
00117 #define HAVE_READLINE_HISTORY_H 1
00118 #endif
00119 
00120 /* Define to 1 if you have the <readline/readline.h> header file. */
00121 #ifndef HAVE_READLINE_READLINE_H
00122 #define HAVE_READLINE_READLINE_H 1
00123 #endif
00124 
00125 /* Define to 1 if you have the <stdint.h> header file. */
00126 #ifndef HAVE_STDINT_H
00127 #define HAVE_STDINT_H 1
00128 #endif
00129 
00130 /* Define to 1 if you have the <stdlib.h> header file. */
00131 #ifndef HAVE_STDLIB_H
00132 #define HAVE_STDLIB_H 1
00133 #endif
00134 
00135 /* Define to 1 if you have the `strerror' function. */
00136 #ifndef HAVE_STRERROR
00137 #define HAVE_STRERROR 1
00138 #endif
00139 
00140 /* Define to 1 if you have the <string> header file. */
00141 #ifndef HAVE_STRING
00142 #define HAVE_STRING 1
00143 #endif
00144 
00145 /* Define to 1 if you have the <strings.h> header file. */
00146 #ifndef HAVE_STRINGS_H
00147 #define HAVE_STRINGS_H 1
00148 #endif
00149 
00150 /* Define to 1 if you have the <string.h> header file. */
00151 #ifndef HAVE_STRING_H
00152 #define HAVE_STRING_H 1
00153 #endif
00154 
00155 /* Define to 1 if you have `strtoimax'. */
00156 /* #undef HAVE_STRTOIMAX */
00157 
00158 /* Define to 1 if you have `strtoll'. */
00159 /* #undef HAVE_STRTOLL */
00160 
00161 /* Define to 1 if you have `strtoq'. */
00162 #ifndef HAVE_STRTOQ
00163 #define HAVE_STRTOQ 1
00164 #endif
00165 
00166 /* Define to 1 if you have the <sys/stat.h> header file. */
00167 #ifndef HAVE_SYS_STAT_H
00168 #define HAVE_SYS_STAT_H 1
00169 #endif
00170 
00171 /* Define to 1 if you have the <sys/types.h> header file. */
00172 #ifndef HAVE_SYS_TYPES_H
00173 #define HAVE_SYS_TYPES_H 1
00174 #endif
00175 
00176 /* Define to 1 if you have the <type_traits.h> header file. */
00177 /* #undef HAVE_TYPE_TRAITS_H */
00178 
00179 /* Define to 1 if you have the <unistd.h> header file. */
00180 #ifndef HAVE_UNISTD_H
00181 #define HAVE_UNISTD_H 1
00182 #endif
00183 
00184 /* Define to 1 if the system has the type `unsigned long long'. */
00185 #ifndef HAVE_UNSIGNED_LONG_LONG
00186 #define HAVE_UNSIGNED_LONG_LONG 1
00187 #endif
00188 
00189 /* Define to 1 if you have the <windows.h> header file. */
00190 /* #undef HAVE_WINDOWS_H */
00191 
00192 /* Define to 1 if you have the <zlib.h> header file. */
00193 #ifndef HAVE_ZLIB_H
00194 #define HAVE_ZLIB_H 1
00195 #endif
00196 
00197 /* Define to 1 if you have `_strtoi64'. */
00198 /* #undef HAVE__STRTOI64 */
00199 
00200 /* Exclude these above definitions when building within PHP */
00201 #endif
00202 
00203 /* The value of LINK_SIZE determines the number of bytes used to store links
00204    as offsets within the compiled regex. The default is 2, which allows for
00205    compiled patterns up to 64K long. This covers the vast majority of cases.
00206    However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
00207    for longer patterns in extreme cases. On systems that support it,
00208    "configure" can be used to override this default. */
00209 #ifndef LINK_SIZE
00210 #define LINK_SIZE 2
00211 #endif
00212 
00213 /* Define to the sub-directory in which libtool stores uninstalled libraries.
00214    */
00215 #ifndef LT_OBJDIR
00216 #define LT_OBJDIR ".libs/"
00217 #endif
00218 
00219 /* The value of MATCH_LIMIT determines the default number of times the
00220    internal match() function can be called during a single execution of
00221    pcre_exec(). There is a runtime interface for setting a different limit.
00222    The limit exists in order to catch runaway regular expressions that take
00223    for ever to determine that they do not match. The default is set very large
00224    so that it does not accidentally catch legitimate cases. On systems that
00225    support it, "configure" can be used to override this default default. */
00226 #ifndef MATCH_LIMIT
00227 #define MATCH_LIMIT 10000000
00228 #endif
00229 
00230 /* The above limit applies to all calls of match(), whether or not they
00231    increase the recursion depth. In some environments it is desirable to limit
00232    the depth of recursive calls of match() more strictly, in order to restrict
00233    the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
00234    used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
00235    match(). To have any useful effect, it must be less than the value of
00236    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
00237    a runtime method for setting a different limit. On systems that support it,
00238    "configure" can be used to override the default. */
00239 #ifndef MATCH_LIMIT_RECURSION
00240 #define MATCH_LIMIT_RECURSION MATCH_LIMIT
00241 #endif
00242 
00243 /* This limit is parameterized just in case anybody ever wants to change it.
00244    Care must be taken if it is increased, because it guards against integer
00245    overflow caused by enormously large patterns. */
00246 #ifndef MAX_NAME_COUNT
00247 #define MAX_NAME_COUNT 10000
00248 #endif
00249 
00250 /* This limit is parameterized just in case anybody ever wants to change it.
00251    Care must be taken if it is increased, because it guards against integer
00252    overflow caused by enormously large patterns. */
00253 #ifndef MAX_NAME_SIZE
00254 #define MAX_NAME_SIZE 32
00255 #endif
00256 
00257 /* The value of NEWLINE determines the newline character sequence. On systems
00258    that support it, "configure" can be used to override the default, which is
00259    10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
00260    (ANYCRLF). */
00261 #ifndef NEWLINE
00262 #define NEWLINE 10
00263 #endif
00264 
00265 /* PCRE uses recursive function calls to handle backtracking while matching.
00266    This can sometimes be a problem on systems that have stacks of limited
00267    size. Define NO_RECURSE to get a version that doesn't use recursion in the
00268    match() function; instead it creates its own stack by steam using
00269    pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
00270    the comments and other stuff just above the match() function. On systems
00271    that support it, "configure" can be used to set this in the Makefile (use
00272    --disable-stack-for-recursion). */
00273 /* #undef NO_RECURSE */
00274 
00275 /* Name of package */
00276 #define PACKAGE "pcre"
00277 
00278 /* Define to the address where bug reports for this package should be sent. */
00279 #define PACKAGE_BUGREPORT ""
00280 
00281 /* Define to the full name of this package. */
00282 #define PACKAGE_NAME "PCRE"
00283 
00284 /* Define to the full name and version of this package. */
00285 #define PACKAGE_STRING "PCRE 8.12"
00286 
00287 /* Define to the one symbol short name of this package. */
00288 #define PACKAGE_TARNAME "pcre"
00289 
00290 /* Define to the home page for this package. */
00291 #define PACKAGE_URL ""
00292 
00293 /* Define to the version of this package. */
00294 #define PACKAGE_VERSION "8.12"
00295 
00296 
00297 /* If you are compiling for a system other than a Unix-like system or
00298    Win32, and it needs some magic to be inserted before the definition
00299    of a function that is exported by the library, define this macro to
00300    contain the relevant magic. If you do not define this macro, it
00301    defaults to "extern" for a C compiler and "extern C" for a C++
00302    compiler on non-Win32 systems. This macro apears at the start of
00303    every exported function that is part of the external API. It does
00304    not appear on functions that are "external" in the C sense, but
00305    which are internal to the library. */
00306 /* #undef PCRE_EXP_DEFN */
00307 
00308 /* Define if linking statically (TODO: make nice with Libtool) */
00309 /* #undef PCRE_STATIC */
00310 
00311 /* When calling PCRE via the POSIX interface, additional working storage is
00312    required for holding the pointers to capturing substrings because PCRE
00313    requires three integers per substring, whereas the POSIX interface provides
00314    only two. If the number of expected substrings is small, the wrapper
00315    function uses space on the stack, because this is faster than using
00316    malloc() for each call. The threshold above which the stack is no longer
00317    used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
00318    "configure" can be used to override this default. */
00319 #ifndef POSIX_MALLOC_THRESHOLD
00320 #define POSIX_MALLOC_THRESHOLD 10
00321 #endif
00322 
00323 /* Define to 1 if you have the ANSI C header files. */
00324 #ifndef STDC_HEADERS
00325 #define STDC_HEADERS 1
00326 #endif
00327 
00328 /* Define to allow pcregrep to be linked with libbz2, so that it is able to
00329    handle .bz2 files. */
00330 /* #undef SUPPORT_LIBBZ2 */
00331 
00332 /* Define to allow pcretest to be linked with libreadline. */
00333 /* #undef SUPPORT_LIBREADLINE */
00334 
00335 /* Define to allow pcregrep to be linked with libz, so that it is able to
00336    handle .gz files. */
00337 /* #undef SUPPORT_LIBZ */
00338 
00339 /* Define to enable support for Unicode properties */
00340 /* #undef SUPPORT_UCP */
00341 
00342 /* Define to enable support for the UTF-8 Unicode encoding. This will work
00343    even in an EBCDIC environment, but it is incompatible with the EBCDIC
00344    macro. That is, PCRE can support *either* EBCDIC code *or* ASCII/UTF-8, but
00345    not both at once. */
00346 /* #undef SUPPORT_UTF8 */
00347 
00348 /* Version number of package */
00349 #ifndef VERSION
00350 #define VERSION "8.12"
00351 #endif
00352 
00353 /* Define to empty if `const' does not conform to ANSI C. */
00354 /* #undef const */
00355 
00356 /* Define to the type of a signed integer type of width exactly 64 bits if
00357    such a type exists and the standard includes do not define it. */
00358 /* #undef int64_t */
00359 
00360 /* Define to `unsigned int' if <sys/types.h> does not define. */
00361 /* #undef size_t */