2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for gb.pcre
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-pcre, GB_VERSION, GB_MAIL, [], GB_URL)
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_INIT(gb.pcre)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2018-08-24 23:50:47 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
2012-05-18 03:19:15 +02:00
|
|
|
pcre, PCRE, gb.pcre, [src],
|
2021-12-07 20:51:34 +01:00
|
|
|
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)
|
2018-08-24 23:50:47 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
2010-07-14 03:50:18 +02:00
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|