com php-src: Enable valgrind support for PCRE by default in debug builds: ext/pcre/config0.m4
| From: | Anatol Belski | Date: | Thu, 13 Jul 2017 16:38:28 +0000 |
| Subject: | com php-src: Enable valgrind support for PCRE by default in debug builds: ext/pcre/config0.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98544@lists.php.net to get a copy of this message | ||
Commit: 850bb998d9664e849ed743ea031dd0ee2a64cc9d
Author: Anatol Belski <ab@php.net> Thu, 13 Jul 2017 18:36:00 +0200
Parents: 1e2764614bc8dca9ef44082d0a1e53d09f8b0562
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=850bb998d9664e849ed743ea031dd0ee2a64cc9d
Log:
Enable valgrind support for PCRE by default in debug builds
Thanks Nikita for the hint.
Changed paths:
M ext/pcre/config0.m4
Diff:
diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4
index 6d5b257..aa8cd30 100644
--- a/ext/pcre/config0.m4
+++ b/ext/pcre/config0.m4
@@ -79,11 +79,14 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality]
fi
PHP_ARG_WITH(pcre-valgrind,,[ --with-pcre-valgrind=DIR
- Enable PCRE valgrind support. Developers only!], no, no)
+ Enable PCRE valgrind support. Developers only!], $PHP_DEBUG, no)
+
if test "$PHP_PCRE_REGEX" != "yes" && test
"$PHP_PCRE_REGEX" != "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
+ if test "$PHP_PCRE_VALGRIND" = "no" && test "$PHP_DEBUG"
!= "no"; then
+ AC_MSG_NOTICE([PCRE Valgrind support is disabled for debug build])
+ elif test "$PHP_PCRE_VALGRIND" != "no" || test "$PHP_DEBUG" !=
"no"; then
PHP_PCRE_VALGRIND_INCDIR=
AC_MSG_CHECKING([for Valgrind headers location])
for i in $PHP_PCRE_VALGRIND $PHP_PCRE_VALGRIND/include $PHP_PCRE_VALGRIND/local/include
/usr/include /usr/local/include; do