1PHP_ARG_ENABLE([simplexml], 2 [whether to enable SimpleXML support], 3 [AS_HELP_STRING([--disable-simplexml], 4 [Disable SimpleXML support])], 5 [yes]) 6 7if test "$PHP_SIMPLEXML" != "no"; then 8 9 if test "$PHP_LIBXML" = "no"; then 10 AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --with-libxml]) 11 fi 12 13 PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [ 14 AC_DEFINE(HAVE_SIMPLEXML,1,[ ]) 15 PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared) 16 PHP_INSTALL_HEADERS([ext/simplexml/php_simplexml.h ext/simplexml/php_simplexml_exports.h]) 17 PHP_SUBST(SIMPLEXML_SHARED_LIBADD) 18 ]) 19 PHP_ADD_EXTENSION_DEP(simplexml, libxml) 20 PHP_ADD_EXTENSION_DEP(simplexml, spl, true) 21fi 22