368 |
fi |
fi |
369 |
fi |
fi |
370 |
|
|
371 |
# Convert the newline identifier into the appropriate integer value. The first |
# Convert the newline identifier into the appropriate integer value. The first |
372 |
# three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they |
# three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they |
373 |
# are changed below. |
# are changed below. |
374 |
|
|
386 |
# --enable-ebcdic-nl25 implies --enable-ebcdic |
# --enable-ebcdic-nl25 implies --enable-ebcdic |
387 |
if test "x$enable_ebcdic_nl25" = "xyes"; then |
if test "x$enable_ebcdic_nl25" = "xyes"; then |
388 |
enable_ebcdic=yes |
enable_ebcdic=yes |
389 |
fi |
fi |
390 |
|
|
391 |
# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled, |
# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled, |
392 |
# and the newline value is adjusted appropriately (CR is still 13, but LF is |
# and the newline value is adjusted appropriately (CR is still 13, but LF is |
405 |
case "$ac_pcre_newline_value" in |
case "$ac_pcre_newline_value" in |
406 |
10) ac_pcre_newline_value=21 ;; |
10) ac_pcre_newline_value=21 ;; |
407 |
3338) ac_pcre_newline_value=3349 ;; |
3338) ac_pcre_newline_value=3349 ;; |
408 |
esac |
esac |
409 |
else |
else |
410 |
case "$ac_pcre_newline_value" in |
case "$ac_pcre_newline_value" in |
411 |
10) ac_pcre_newline_value=37 ;; |
10) ac_pcre_newline_value=37 ;; |
412 |
3338) ac_pcre_newline_value=3365 ;; |
3338) ac_pcre_newline_value=3365 ;; |
413 |
esac |
esac |
414 |
fi |
fi |
415 |
fi |
fi |
416 |
|
|
417 |
# Check argument to --with-link-size |
# Check argument to --with-link-size |
697 |
AC_DEFINE([NO_RECURSE], [], [ |
AC_DEFINE([NO_RECURSE], [], [ |
698 |
PCRE uses recursive function calls to handle backtracking while |
PCRE uses recursive function calls to handle backtracking while |
699 |
matching. This can sometimes be a problem on systems that have |
matching. This can sometimes be a problem on systems that have |
700 |
stacks of limited size. Define NO_RECURSE to any value to get a |
stacks of limited size. Define NO_RECURSE to any value to get a |
701 |
version that doesn't use recursion in the match() function; instead |
version that doesn't use recursion in the match() function; instead |
702 |
it creates its own stack by steam using pcre_recurse_malloc() to obtain |
it creates its own stack by steam using pcre_recurse_malloc() to obtain |
703 |
memory from the heap. For more detail, see the comments and other stuff |
memory from the heap. For more detail, see the comments and other stuff |
704 |
just above the match() function.]) |
just above the match() function.]) |
748 |
AC_DEFINE([BSR_ANYCRLF], [], [ |
AC_DEFINE([BSR_ANYCRLF], [], [ |
749 |
By default, the \R escape sequence matches any Unicode line ending |
By default, the \R escape sequence matches any Unicode line ending |
750 |
character or sequence of characters. If BSR_ANYCRLF is defined (to any |
character or sequence of characters. If BSR_ANYCRLF is defined (to any |
751 |
value), this is changed so that backslash-R matches only CR, LF, or CRLF. |
value), this is changed so that backslash-R matches only CR, LF, or CRLF. |
752 |
The build-time default can be overridden by the user of PCRE at runtime.]) |
The build-time default can be overridden by the user of PCRE at runtime.]) |
753 |
fi |
fi |
754 |
|
|
803 |
Win32, and it needs some magic to be inserted before the definition |
Win32, and it needs some magic to be inserted before the definition |
804 |
of a function that is exported by the library, define this macro to |
of a function that is exported by the library, define this macro to |
805 |
contain the relevant magic. If you do not define this macro, a suitable |
contain the relevant magic. If you do not define this macro, a suitable |
806 |
__declspec value is used for Windows systems; in other environments |
__declspec value is used for Windows systems; in other environments |
807 |
"extern" is used for a C compiler and "extern C" for a C++ compiler. |
"extern" is used for a C compiler and "extern C" for a C++ compiler. |
808 |
This macro apears at the start of every exported function that is part |
This macro apears at the start of every exported function that is part |
809 |
of the external API. It does not appear on functions that are "external" |
of the external API. It does not appear on functions that are "external" |
810 |
in the C sense, but which are internal to the library. */ |
in the C sense, but which are internal to the library. */ |
811 |
#undef PCRE_EXP_DEFN]) |
#undef PCRE_EXP_DEFN]) |
812 |
|
|
829 |
that LF does in an ASCII/Unicode environment. The value must also be set in |
that LF does in an ASCII/Unicode environment. The value must also be set in |
830 |
the NEWLINE macro below. On systems that can use "configure" or CMake to |
the NEWLINE macro below. On systems that can use "configure" or CMake to |
831 |
set EBCDIC_NL25, the adjustment of NEWLINE is automatic.]) |
set EBCDIC_NL25, the adjustment of NEWLINE is automatic.]) |
832 |
fi |
fi |
833 |
|
|
834 |
if test "$enable_valgrind" = "yes"; then |
if test "$enable_valgrind" = "yes"; then |
835 |
AC_DEFINE_UNQUOTED([SUPPORT_VALGRIND], [], [ |
AC_DEFINE_UNQUOTED([SUPPORT_VALGRIND], [], [ |
981 |
fi |
fi |
982 |
|
|
983 |
AC_DEFINE([SUPPORT_GCOV],[1], [ |
AC_DEFINE([SUPPORT_GCOV],[1], [ |
984 |
Define to allow pcretest and pcregrep to be linked with gcov, so that they |
Define to allow pcretest and pcregrep to be linked with gcov, so that they |
985 |
are able to generate code coverage reports.]) |
are able to generate code coverage reports.]) |
986 |
|
|
987 |
# And add flags needed for gcov |
# And add flags needed for gcov |
1026 |
ebcdic_nl_code=0x25 |
ebcdic_nl_code=0x25 |
1027 |
elif test "$enable_ebcdic" = "yes"; then |
elif test "$enable_ebcdic" = "yes"; then |
1028 |
ebcdic_nl_code=0x15 |
ebcdic_nl_code=0x15 |
1029 |
fi |
fi |
1030 |
|
|
1031 |
cat <<EOF |
cat <<EOF |
1032 |
|
|
1054 |
Newline char/sequence ........... : ${enable_newline} |
Newline char/sequence ........... : ${enable_newline} |
1055 |
\R matches only ANYCRLF ......... : ${enable_bsr_anycrlf} |
\R matches only ANYCRLF ......... : ${enable_bsr_anycrlf} |
1056 |
EBCDIC coding ................... : ${enable_ebcdic} |
EBCDIC coding ................... : ${enable_ebcdic} |
1057 |
EBCDIC code for NL .............. : ${ebcdic_nl_code} |
EBCDIC code for NL .............. : ${ebcdic_nl_code} |
1058 |
Rebuild char tables ............. : ${enable_rebuild_chartables} |
Rebuild char tables ............. : ${enable_rebuild_chartables} |
1059 |
Use stack recursion ............. : ${enable_stack_for_recursion} |
Use stack recursion ............. : ${enable_stack_for_recursion} |
1060 |
POSIX mem threshold ............. : ${with_posix_malloc_threshold} |
POSIX mem threshold ............. : ${with_posix_malloc_threshold} |