Browse Source

- Cache the xml2-config path

PHP-5.1
foobar 21 years ago
parent
commit
e04f5603f7
  1. 9
      acinclude.m4

9
acinclude.m4

@ -2305,15 +2305,18 @@ dnl
dnl Common setup macro for libxml
dnl
AC_DEFUN([PHP_SETUP_LIBXML], [
AC_CACHE_CHECK([for xml2-config path], ac_cv_php_xml2_config_path,
[
for i in $PHP_LIBXML_DIR /usr/local /usr; do
if test -x "$i/bin/xml2-config"; then
XML2_CONFIG="$i/bin/xml2-config"
ac_cv_php_xml2_config_path="$i/bin/xml2-config"
break
fi
done
])
if test -x "$XML2_CONFIG"; then
if test -x "$ac_cv_php_xml2_config_path"; then
XML2_CONFIG="$ac_cv_php_xml2_config_path"
libxml_full_version=`$XML2_CONFIG --version`
ac_IFS=$IFS
IFS="."

Loading…
Cancel
Save