From 813ea0b6637459c658b7b537305933ef0aa9aa31 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 20 May 2003 08:46:55 +0000 Subject: [PATCH] - Make it build with the unbundled libxml again --- ext/simplexml/config.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.50.1