summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-03-27 02:03:44 +0000
committerArd Biesheuvel <abies@php.net>2004-03-27 02:03:44 +0000
commit437840e85d87e9fa73405669e457842349e53190 (patch)
tree8b58090a8d1fbbd14f143916e35f341dbbd39ec7 /acinclude.m4
parent4b82cb500fcd4eba1282ad05c0021e4a0b3c13f5 (diff)
downloadphp-git-437840e85d87e9fa73405669e457842349e53190.tar.gz
Put AC_DEFINE in correct place so caching will work properly
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index fdf75ee1ea..084f70cc56 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1794,7 +1794,6 @@ AC_DEFUN([PHP_SETUP_LIBXML], [
PHP_TEST_BUILD(xmlInitParser,
[
php_cv_libxml_build_works=yes
- AC_DEFINE(HAVE_LIBXML, 1, [ ])
], [
AC_MSG_RESULT(no)
AC_MSG_ERROR([build test failed. Please check the config.log for details.])
@@ -1802,6 +1801,9 @@ AC_DEFUN([PHP_SETUP_LIBXML], [
[$]$1
])
])
+ if test "$php_cv_libxml_build_works" = "yes"; then
+ AC_DEFINE(HAVE_LIBXML, 1, [ ])
+ fi
$2
else
AC_MSG_ERROR([libxml2 version 2.5.10 or greater required.])