1999-05-21 13:17:23 +00:00
|
|
|
dnl $Id$
|
|
|
|
dnl config.m4 for extension pcre
|
|
|
|
|
1999-05-26 21:47:57 +00:00
|
|
|
dnl By default we'll compile and link against the bundled PCRE library
|
|
|
|
dnl if DIR is supplied, we'll use that for linking
|
|
|
|
|
1999-05-28 20:54:52 +00:00
|
|
|
AC_MSG_CHECKING(whether to include PCRE support)
|
1999-05-26 21:47:57 +00:00
|
|
|
AC_ARG_WITH(pcre-regex,
|
1999-05-28 20:54:52 +00:00
|
|
|
[ --with-pcre-regex[=DIR] Include Perl Compatible Regular Expressions support],[
|
|
|
|
if test "$withval" = "yes"; then
|
1999-05-28 22:41:48 +00:00
|
|
|
EXTRA_LIBS="-L$abs_builddir/ext/pcre/pcrelib -lpcre $EXTRA_LIBS"
|
1999-05-28 20:54:52 +00:00
|
|
|
PCRE_SUBDIR="pcrelib"
|
|
|
|
AC_DEFINE(HAVE_PCRE, 1)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PHP_EXTENSION(pcre)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
1999-05-21 13:17:23 +00:00
|
|
|
],[
|
1999-05-28 22:41:48 +00:00
|
|
|
EXTRA_LIBS="-L$abs_builddir/ext/pcre/pcrelib -lpcre $EXTRA_LIBS"
|
1999-05-26 21:47:57 +00:00
|
|
|
PCRE_SUBDIR="pcrelib"
|
1999-05-27 13:59:39 +00:00
|
|
|
AC_DEFINE(HAVE_PCRE, 1)
|
1999-05-26 21:47:57 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PHP_EXTENSION(pcre)
|
1999-05-21 13:17:23 +00:00
|
|
|
])
|
1999-05-26 21:47:57 +00:00
|
|
|
AC_SUBST(PCRE_SUBDIR)
|