mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix bogus $PHP_PCRE_REGEX checks
This variable was dropped in the pkg-config migration, which resulted in spurious warnings about using valgrind with external PCRE. Fix the checks to use the right variable.
This commit is contained in:
parent
d91e3beaa3
commit
882dcb43f7
1 changed files with 6 additions and 8 deletions
|
@ -68,20 +68,18 @@ else
|
|||
AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])
|
||||
AC_DEFINE(PCRE2_CODE_UNIT_WIDTH, 8, [ ])
|
||||
|
||||
if test "$PHP_PCRE_REGEX" != "no"; then
|
||||
AC_MSG_CHECKING([whether to enable PCRE JIT functionality])
|
||||
if test "$PHP_PCRE_JIT" != "no"; then
|
||||
AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [ ])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_CHECKING([whether to enable PCRE JIT functionality])
|
||||
if test "$PHP_PCRE_JIT" != "no"; then
|
||||
AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [ ])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
PHP_ARG_WITH(pcre-valgrind,,[ --with-pcre-valgrind=DIR
|
||||
Enable PCRE valgrind support. Developers only!], no, no)
|
||||
if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
|
||||
if test "$PHP_EXTERNAL_PCRE" != "no"; then
|
||||
AC_MSG_WARN([PHP is going to be linked with an external PCRE, --with-pcre-valgrind has no effect])
|
||||
else
|
||||
if test "$PHP_PCRE_VALGRIND" != "no"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue