dnl config.m4 for extension xml PHP_ARG_ENABLE([xml], [whether to enable XML support], [AS_HELP_STRING([--disable-xml], [Disable XML support])], [yes]) if test -z "$PHP_LIBXML_DIR"; then PHP_ARG_WITH([libxml-dir], [libxml2 install dir], [AS_HELP_STRING([--with-libxml-dir=DIR], [XML: libxml2 install prefix])], [no], [no]) fi PHP_ARG_WITH([libexpat-dir], [libexpat install dir], [AS_HELP_STRING([--with-libexpat-dir=DIR], [XML: libexpat install prefix (deprecated)])], [no], [no]) if test "$PHP_XML" != "no"; then dnl dnl Default to libxml2 if --with-libexpat-dir is not used. dnl if test "$PHP_LIBEXPAT_DIR" = "no"; then if test "$PHP_LIBXML" = "no"; then AC_MSG_ERROR([XML extension requires LIBXML extension, add --enable-libxml]) fi PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [ xml_extra_sources="compat.c" PHP_ADD_EXTENSION_DEP(xml, libxml) ], [ AC_MSG_ERROR([libxml2 not found. Use --with-libxml-dir=