From: foobar Date: Mon, 19 May 2003 21:50:23 +0000 (+0000) Subject: Allow build with expat too. X-Git-Tag: RELEASE_1_0_2~722 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4334f660651d866a8f2a9230be42d67bd9ad8067;p=php Allow build with expat too. --- diff --git a/ext/xml/config.m4 b/ext/xml/config.m4 index 16e748e6df..2e9baf24d6 100644 --- a/ext/xml/config.m4 +++ b/ext/xml/config.m4 @@ -20,7 +20,9 @@ if test "$PHP_XML" != "no"; then PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [ xml_sources="xml.c compat.c" ], [ - AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=) + if test "$PHP_EXPAT_DIR" = "no"; then + AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=) + fi ]) if test "$PHP_EXPAT_DIR" != "no"; then