8716cf4076
[GB.PCRE] * NEW: Support for 'pcre2'. The 'pcre' library is now used only if 'pcre2' is not found. * NEW: The interface is the same if 'pcre2' is used, so you don't have access to the new features of 'pcre2'.
35 lines
595 B
Text
35 lines
595 B
Text
dnl ---- configure.ac for gb.pcre
|
|
|
|
m4_include([../version.m4])
|
|
AC_INIT(gambas3-gb-pcre, GB_VERSION, GB_MAIL, [], GB_URL)
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
GB_INIT(gb.pcre)
|
|
AC_PROG_LIBTOOL
|
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
|
pcre, PCRE, gb.pcre, [src],
|
|
libpcre2-8)
|
|
|
|
if test "$have_pcre" != "yes"; then
|
|
|
|
GB_COMPONENT_PKG_CONFIG_AGAIN(
|
|
pcre, PCRE, gb.pcre, [src],
|
|
libpcre, [trying with pcre])
|
|
gb_use_pcre2=0
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PCRE2, 1, libpcre2 is used)
|
|
gb_use_pcre2=1
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(USE_PCRE2, test "$gb_use_pcre2" = 1)
|
|
|
|
AC_OUTPUT( \
|
|
Makefile \
|
|
src/Makefile \
|
|
)
|
|
|
|
GB_PRINT_MESSAGES
|