config.m4 695 B

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