8 |
|
|
9 |
m4_define(pcre_major, [7]) |
m4_define(pcre_major, [7]) |
10 |
m4_define(pcre_minor, [1]) |
m4_define(pcre_minor, [1]) |
11 |
m4_define(pcre_prerelease, [-RC1]) |
m4_define(pcre_prerelease, [-RC2]) |
12 |
m4_define(pcre_date, [2007-03-12]) |
m4_define(pcre_date, [2007-03-20]) |
13 |
|
|
14 |
# Libtool shared library interface versions (current:revision:age) |
# Libtool shared library interface versions (current:revision:age) |
15 |
m4_define(libpcre_version, [0:1:0]) |
m4_define(libpcre_version, [0:1:0]) |
49 |
[disable C++ support]), |
[disable C++ support]), |
50 |
, enable_cpp=yes) |
, enable_cpp=yes) |
51 |
|
|
52 |
|
# Handle --enable-rebuild-chartables |
53 |
|
AC_ARG_ENABLE(rebuild-chartables, |
54 |
|
AS_HELP_STRING([--enable-rebuild-chartables], |
55 |
|
[rebuild character tables in current locale]), |
56 |
|
, enable_rebuild_chartables=no) |
57 |
|
|
58 |
# Handle --enable-utf8 (disabled by default) |
# Handle --enable-utf8 (disabled by default) |
59 |
AC_ARG_ENABLE(utf8, |
AC_ARG_ENABLE(utf8, |
60 |
AS_HELP_STRING([--enable-utf8], |
AS_HELP_STRING([--enable-utf8], |
96 |
# Handle --enable-ebcdic |
# Handle --enable-ebcdic |
97 |
AC_ARG_ENABLE(ebcdic, |
AC_ARG_ENABLE(ebcdic, |
98 |
AS_HELP_STRING([--enable-ebcdic], |
AS_HELP_STRING([--enable-ebcdic], |
99 |
[assume EBCDIC coding rather than ASCII]), |
[assume EBCDIC coding rather than ASCII (implies --enable-rebuild-chartables)]), |
100 |
, enable_ebcdic=no) |
, enable_ebcdic=no) |
101 |
|
|
102 |
# Handle --disable-stack-for-recursion |
# Handle --disable-stack-for-recursion |
153 |
enable_utf8=no |
enable_utf8=no |
154 |
fi |
fi |
155 |
|
|
156 |
|
# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled. |
157 |
|
# |
158 |
|
if test "x$enable_ebcdie" = "xyes" |
159 |
|
then |
160 |
|
enable_rebuild_chartables=yes |
161 |
|
fi |
162 |
|
|
163 |
# Convert the newline identifier into the appropriate integer value. |
# Convert the newline identifier into the appropriate integer value. |
164 |
case "$enable_newline" in |
case "$enable_newline" in |
165 |
lf) ac_pcre_newline_value=10 ;; |
lf) ac_pcre_newline_value=10 ;; |
206 |
AC_LANG_PUSH(C++) |
AC_LANG_PUSH(C++) |
207 |
|
|
208 |
# We could be more clever here, given we're doing AC_SUBST with this |
# We could be more clever here, given we're doing AC_SUBST with this |
209 |
# (eg set a var to be the name of the include file we want). But we're not |
# (eg set a var to be the name of the include file we want). But we're not |
210 |
# so it's easy to change back to 'regular' autoconf vars if we needed to. |
# so it's easy to change back to 'regular' autoconf vars if we needed to. |
211 |
AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"], |
AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"], |
212 |
[pcre_have_cpp_headers="0"]) |
[pcre_have_cpp_headers="0"]) |
222 |
|
|
223 |
# Conditional compilation |
# Conditional compilation |
224 |
AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes") |
AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes") |
225 |
|
AM_CONDITIONAL(WITH_REBUILD_CHARTABLES, test "x$enable_rebuild_chartables" = "xyes") |
226 |
|
|
227 |
# Checks for typedefs, structures, and compiler characteristics. |
# Checks for typedefs, structures, and compiler characteristics. |
228 |
|
|
265 |
if test "$enable_stack_for_recursion" = "no"; then |
if test "$enable_stack_for_recursion" = "no"; then |
266 |
AC_DEFINE([NO_RECURSE], [], [ |
AC_DEFINE([NO_RECURSE], [], [ |
267 |
PCRE uses recursive function calls to handle backtracking while |
PCRE uses recursive function calls to handle backtracking while |
268 |
matching. This can sometimes be a problem on systems that have |
matching. This can sometimes be a problem on systems that have |
269 |
stacks of limited size. Define NO_RECURSE to get a version that |
stacks of limited size. Define NO_RECURSE to get a version that |
270 |
doesn't use recursion in the match() function; instead it creates |
doesn't use recursion in the match() function; instead it creates |
271 |
its own stack by steam using pcre_recurse_malloc() to obtain memory |
its own stack by steam using pcre_recurse_malloc() to obtain memory |
403 |
|
|
404 |
AC_OUTPUT |
AC_OUTPUT |
405 |
|
|
406 |
|
# Make sure that pcre_chartables.c is removed in case the method for |
407 |
|
# creating it was changed by reconfiguration. |
408 |
|
|
409 |
|
rm -f pcre_chartables.c |
410 |
|
|
411 |
# Print out a nice little message after configure is run displaying your |
# Print out a nice little message after configure is run displaying your |
412 |
# chosen options. |
# chosen options. |
413 |
# |
# |
432 |
Unicode properties ..... : ${enable_unicode_properties} |
Unicode properties ..... : ${enable_unicode_properties} |
433 |
Newline char/sequence .. : ${enable_newline} |
Newline char/sequence .. : ${enable_newline} |
434 |
EBCDIC coding .......... : ${enable_ebcdic} |
EBCDIC coding .......... : ${enable_ebcdic} |
435 |
|
Rebuild char tables .... : ${enable_rebuild_chartables} |
436 |
Use stack recursion .... : ${enable_stack_for_recursion} |
Use stack recursion .... : ${enable_stack_for_recursion} |
437 |
POSIX mem threshold .... : ${with_posix_malloc_threshold} |
POSIX mem threshold .... : ${with_posix_malloc_threshold} |
438 |
Internal link size ..... : ${with_link_size} |
Internal link size ..... : ${with_link_size} |