From 39bcbfc3064f8a393d5ff7d951d303dedfe6a00d Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 27 Apr 2005 13:12:55 +0000 Subject: - Made the libxml related stuff to error out if someone does --disable-all or --disable-libxml. Better than silently just leave the ext out.. --- ext/xmlrpc/config.m4 | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'ext/xmlrpc') diff --git a/ext/xmlrpc/config.m4 b/ext/xmlrpc/config.m4 index 4da58ff848..78e0c79880 100644 --- a/ext/xmlrpc/config.m4 +++ b/ext/xmlrpc/config.m4 @@ -28,20 +28,23 @@ if test "$PHP_XMLRPC" != "no"; then AC_DEFINE(HAVE_XMLRPC,1,[ ]) dnl - dnl Default to libxml2. + dnl Default to libxml2 if --with-expat-dir is not used dnl - PHP_SETUP_LIBXML(XMLRPC_SHARED_LIBADD, [ - if test "$PHP_XML" = "no"; then - PHP_ADD_SOURCES(ext/xml, compat.c) - PHP_ADD_BUILD_DIR(ext/xml) - fi - ], [ - if test "$PHP_EXPAT_DIR" = "no"; then - AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=]) + if test "$PHP_EXPAT_DIR" = "no"; then + + if test "$PHP_LIBXML" = "no"; then + AC_MSG_ERROR([XML-RPC extension requires LIBXML extension, add --enable-libxml]) fi - ]) - if test "$PHP_EXPAT_DIR" != "no"; then + PHP_SETUP_LIBXML(XMLRPC_SHARED_LIBADD, [ + if test "$PHP_XML" = "no"; then + PHP_ADD_SOURCES(ext/xml, compat.c) + PHP_ADD_BUILD_DIR(ext/xml) + fi + ], [ + AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=]) + ]) + else testval=no for i in $PHP_EXPAT_DIR $XMLRPC_DIR /usr/local /usr; do if test -f $i/$PHP_LIBDIR/libexpat.a -o -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then @@ -54,7 +57,7 @@ if test "$PHP_XMLRPC" != "no"; then done if test "$testval" = "no"; then - AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=) + AC_MSG_ERROR([XML-RPC support requires libexpat. Use --with-expat-dir= (deprecated!)]) fi fi -- cgit v1.2.1