From: Derick Rethans Date: Tue, 20 May 2003 08:46:55 +0000 (+0000) Subject: - Make it build with the unbundled libxml again X-Git-Tag: RELEASE_1_0_2~707 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=813ea0b6637459c658b7b537305933ef0aa9aa31;p=php - Make it build with the unbundled libxml again --- diff --git a/ext/simplexml/config.m4 b/ext/simplexml/config.m4 index 21eeac8d9c..aa1cf4c917 100644 --- a/ext/simplexml/config.m4 +++ b/ext/simplexml/config.m4 @@ -5,5 +5,14 @@ PHP_ARG_WITH(simplexml, for simplexml support, [ --with-simplexml Include simplexml support]) if test "$PHP_SIMPLEXML" != "no"; then - PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared) + + PHP_LIBXML_DIR=$PHP_SIMPLEXML + + PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [ + AC_DEFINE(HAVE_SIMPLEXML,1,[ ]) + PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared) + PHP_SUBST(SIMPLEXML_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]) + ]) fi