Install PCRE 6.7 in in place of 6.2.
[exim.git] / src / src / pcre / config.h
CommitLineData
aa41d2de 1/* $Cambridge: exim/src/src/pcre/config.h,v 1.2 2006/11/07 16:50:36 ph10 Exp $ */
c86f6258
PH
2
3/*************************************************
4* config.h for PCRE for Exim *
5*************************************************/
6
7/* The PCRE sources include config.h, which for a free-standing PCRE build gets
aa41d2de 8set up by autoconf. For the embedded version in Exim, this file, which is
c86f6258
PH
9manually maintained, is used.
10
11The only configuration thing that matters for the PCRE library itself is
12whether the memmove() function exists or not. It should be present in all
13Standard C libraries, but is missing in SunOS4. PCRE expects autoconf to set
14HAVE_MEMMOVE to 1 in config.h when memmove() is present. If that is not set, it
15defines memmove() as a macro for bcopy().
16
aa41d2de
PH
17Exim works differently. It handles this case by defining memmove() as a macro
18in its os.h-SunOS4 file. We interface this to PCRE by including the os.h file
19here, and then defining HAVE_MEMOVE so that PCRE's code in internal.h leaves
c86f6258
PH
20things alone. */
21
22#include "../os.h"
23#define HAVE_MEMMOVE 1
24
aa41d2de 25/* We also set up directly a number of parameters that, in the freestanding
c86f6258
PH
26PCRE, can be adjusted by "configure". */
27
28#define NEWLINE '\n'
29#define LINK_SIZE 2
30#define MATCH_LIMIT 10000000
aa41d2de 31#define MATCH_LIMIT_RECURSION 10000000
c86f6258
PH
32#define POSIX_MALLOC_THRESHOLD 10
33
aa41d2de
PH
34#define MAX_NAME_SIZE 32
35#define MAX_NAME_COUNT 10000
36#define MAX_DUPLENGTH 30000
37
c86f6258
PH
38/* There is some stuff in the PCRE sources for compilation on non-Unix systems
39and non-ASCII systems. For Exim's purposes, just flatten it all. */
40
41#define EBCDIC 0
42#define EXPORT
43
44/* End */