Skip to content

Commit c069adb

Browse files
committed
Merge branch 'PHP-7.2'
2 parents 543cab8 + 25ba60b commit c069adb

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

Diff for: acinclude.m4

-20
Original file line numberDiff line numberDiff line change
@@ -3310,23 +3310,3 @@ dnl Load the AX_CHECK_COMPILE_FLAG macro from the autoconf archive.
33103310
m4_include([build/ax_check_compile_flag.m4])
33113311

33123312
m4_include([build/ax_gcc_func_attribute.m4])
3313-
3314-
dnl PHP_CHECK_VALGRIND
3315-
AC_DEFUN([PHP_CHECK_VALGRIND], [
3316-
AC_MSG_CHECKING([for valgrind])
3317-
3318-
SEARCH_PATH="/usr/local /usr"
3319-
SEARCH_FOR="/include/valgrind/valgrind.h"
3320-
for i in $SEARCH_PATH ; do
3321-
if test -r $i/$SEARCH_FOR; then
3322-
VALGRIND_DIR=$i
3323-
fi
3324-
done
3325-
3326-
if test -z "$VALGRIND_DIR"; then
3327-
AC_MSG_RESULT([not found])
3328-
else
3329-
AC_MSG_RESULT(found in $VALGRIND_DIR)
3330-
AC_DEFINE(HAVE_VALGRIND, 1, [ ])
3331-
fi
3332-
])

Diff for: configure.ac

+29-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,35 @@ if test "$ac_cv__asm_goto" = yes; then
784784
AC_DEFINE(HAVE_ASM_GOTO,1,[Define if asm goto support])
785785
fi
786786

787-
PHP_CHECK_VALGRIND
787+
dnl Check valgrind support
788+
PHP_ARG_WITH(valgrind, [whether to enable valgrind support],
789+
[ --with-valgrind=DIR Enable valgrind support], yes, no)
790+
791+
if test "$PHP_VALGRIND" != "no"; then
792+
793+
AC_MSG_CHECKING([for valgrind header])
794+
795+
if test "$PHP_VALGRIND" = "yes"; then
796+
SEARCH_PATH="/usr/local /usr"
797+
else
798+
SEARCH_PATH="$PHP_VALGRIND"
799+
fi
800+
801+
SEARCH_FOR="/include/valgrind/valgrind.h"
802+
for i in $SEARCH_PATH ; do
803+
if test -r $i/$SEARCH_FOR; then
804+
VALGRIND_DIR=$i
805+
fi
806+
done
807+
808+
if test -z "$VALGRIND_DIR"; then
809+
AC_MSG_RESULT([not found])
810+
else
811+
AC_MSG_RESULT(found in $VALGRIND_DIR)
812+
AC_DEFINE(HAVE_VALGRIND, 1, [ ])
813+
fi
814+
815+
fi
788816

789817
dnl General settings.
790818
dnl -------------------------------------------------------------------------

Diff for: ext/xml/php_xml.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern zend_module_entry xml_module_entry;
3636

3737
#ifdef HAVE_XML
3838

39-
#include "ext/xml/expat_compat.h"
39+
#include "expat_compat.h"
4040

4141
#ifdef XML_UNICODE
4242
#error "UTF-16 Unicode support not implemented!"

0 commit comments

Comments
 (0)