bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / iis / pcre / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl This is required at the start; the name is the name of a file
4 dnl it should be seeing, to verify it is in the same directory.
5
6 AC_INIT(dftables.c)
7
8 dnl A safety precaution
9
10 AC_PREREQ(2.57)
11
12 dnl Arrange to build config.h from config.in. Note that pcre.h is
13 dnl built differently, as it is just a "substitution" file.
14 dnl Manual says this macro should come right after AC_INIT.
15 AC_CONFIG_HEADER(config.h:config.in)
16
17 dnl Provide the current PCRE version information. Do not use numbers
18 dnl with leading zeros for the minor version, as they end up in a C
19 dnl macro, and may be treated as octal constants. Stick to single
20 dnl digits for minor numbers less than 10. There are unlikely to be
21 dnl that many releases anyway.
22
23 PCRE_MAJOR=5
24 PCRE_MINOR=0
25 PCRE_DATE=13-Sep-2004
26 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
27
28 dnl Default values for miscellaneous macros
29
30 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
31
32 dnl Provide versioning information for libtool shared libraries that
33 dnl are built by default on Unix systems.
34
35 PCRE_LIB_VERSION=0:1:0
36 PCRE_POSIXLIB_VERSION=0:0:0
37
38 dnl Checks for programs.
39
40 AC_PROG_CC
41
42 dnl Checks for header files.
43
44 AC_HEADER_STDC
45 AC_CHECK_HEADERS(limits.h)
46
47 dnl Checks for typedefs, structures, and compiler characteristics.
48
49 AC_C_CONST
50 AC_TYPE_SIZE_T
51
52 dnl Checks for library functions.
53
54 AC_CHECK_FUNCS(bcopy memmove strerror)
55
56 dnl Handle --enable-shared-libraries
57
58 LIBTOOL=./libtool
59 LIBSUFFIX=la
60 AC_ARG_ENABLE(shared,
61 [  --disable-shared        build PCRE as a static library],
62 if test "$enableval" = "no"; then
63   LIBTOOL=
64   LIBSUFFIX=a
65 fi
66 )
67
68 dnl Handle --enable-utf8
69
70 AC_ARG_ENABLE(utf8,
71 [  --enable-utf8           enable UTF8 support],
72 if test "$enableval" = "yes"; then
73   UTF8=-DSUPPORT_UTF8
74 fi
75 )
76
77 dnl Handle --enable-unicode-properties
78
79 AC_ARG_ENABLE(unicode-properties,
80 [  --enable-unicode-properties  enable Unicode properties support],
81 if test "$enableval" = "yes"; then
82   UCP=-DSUPPORT_UCP
83 fi
84 )
85
86 dnl Handle --enable-newline-is-cr
87
88 AC_ARG_ENABLE(newline-is-cr,
89 [  --enable-newline-is-cr  use CR as the newline character],
90 if test "$enableval" = "yes"; then
91   NEWLINE=-DNEWLINE=13
92 fi
93 )
94
95 dnl Handle --enable-newline-is-lf
96
97 AC_ARG_ENABLE(newline-is-lf,
98 [  --enable-newline-is-lf  use LF as the newline character],
99 if test "$enableval" = "yes"; then
100   NEWLINE=-DNEWLINE=10
101 fi
102 )
103
104 dnl Handle --enable-ebcdic
105
106 AC_ARG_ENABLE(ebcdic,
107 [  --enable-ebcdic         assume EBCDIC coding rather than ASCII],
108 if test "$enableval" == "yes"; then
109   EBCDIC=-DEBCDIC=1
110 fi
111 )
112
113 dnl Handle --disable-stack-for-recursion
114
115 AC_ARG_ENABLE(stack-for-recursion,
116 [  --disable-stack-for-recursion  disable use of stack recursion when matching],
117 if test "$enableval" = "no"; then
118   NO_RECURSE=-DNO_RECURSE
119 fi
120 )
121
122 dnl There doesn't seem to be a straightforward way of having parameters
123 dnl that set values, other than fudging the --with thing. So that's what
124 dnl I've done.
125
126 dnl Handle --with-posix-malloc-threshold=n
127
128 AC_ARG_WITH(posix-malloc-threshold,
129 [  --with-posix-malloc-threshold=5  threshold for POSIX malloc usage],
130   POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=$withval
131 )
132
133 dnl Handle --with-link-size=n
134
135 AC_ARG_WITH(link-size,
136 [  --with-link-size=2    internal link size (2, 3, or 4 allowed)],
137   LINK_SIZE=-DLINK_SIZE=$withval
138 )
139
140 dnl Handle --with-match_limit=n
141
142 AC_ARG_WITH(match-limit,
143 [  --with-match-limit=10000000      default limit on internal looping)],
144   MATCH_LIMIT=-DMATCH_LIMIT=$withval
145 )
146
147 dnl Unicode character property support implies UTF-8 support
148
149 if test "$UCP" != "" ; then
150   UTF8=-DSUPPORT_UTF8
151 fi
152
153 dnl "Export" these variables
154
155 AC_SUBST(BUILD_EXEEXT)
156 AC_SUBST(BUILD_OBJEXT)
157 AC_SUBST(CC_FOR_BUILD)
158 AC_SUBST(CFLAGS_FOR_BUILD)
159 AC_SUBST(EBCDIC)
160 AC_SUBST(HAVE_MEMMOVE)
161 AC_SUBST(HAVE_STRERROR)
162 AC_SUBST(LIBTOOL)
163 AC_SUBST(LIBSUFFIX)
164 AC_SUBST(LINK_SIZE)
165 AC_SUBST(MATCH_LIMIT)
166 AC_SUBST(NEWLINE)
167 AC_SUBST(NO_RECURSE)
168 AC_SUBST(PCRE_MAJOR)
169 AC_SUBST(PCRE_MINOR)
170 AC_SUBST(PCRE_DATE)
171 AC_SUBST(PCRE_VERSION)
172 AC_SUBST(PCRE_LIB_VERSION)
173 AC_SUBST(PCRE_POSIXLIB_VERSION)
174 AC_SUBST(POSIX_MALLOC_THRESHOLD)
175 AC_SUBST(UCP)
176 AC_SUBST(UTF8)
177
178
179 if test "x$enable_shared" = "xno" ; then
180     AC_DEFINE([PCRE_STATIC],[1],[to link statically])
181 fi
182
183 dnl This must be last; it determines what files are written as well as config.h
184 AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config,[chmod a+x pcre-config])
185