2003-06-06 01:06:52 +08:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
2003-07-01 01:23:52 +08:00
|
|
|
PHP_ARG_ENABLE(dom, whether to enable DOM support,
|
2007-07-04 01:24:39 +08:00
|
|
|
[ --disable-dom Disable DOM support], yes)
|
2003-06-06 01:06:52 +08:00
|
|
|
|
2003-07-01 01:23:52 +08:00
|
|
|
if test -z "$PHP_LIBXML_DIR"; then
|
|
|
|
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
|
2005-05-30 07:17:16 +08:00
|
|
|
[ --with-libxml-dir[=DIR] DOM: libxml2 install prefix], no, no)
|
2003-06-06 01:06:52 +08:00
|
|
|
fi
|
|
|
|
|
2005-04-27 21:12:55 +08:00
|
|
|
if test "$PHP_DOM" != "no"; then
|
|
|
|
|
|
|
|
if test "$PHP_LIBXML" = "no"; then
|
|
|
|
AC_MSG_ERROR([DOM extension requires LIBXML extension, add --enable-libxml])
|
|
|
|
fi
|
2003-06-06 01:06:52 +08:00
|
|
|
|
2003-07-01 01:23:52 +08:00
|
|
|
PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
|
|
|
|
AC_DEFINE(HAVE_DOM,1,[ ])
|
|
|
|
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
|
|
|
|
domstringlist.c domexception.c namelist.c \
|
|
|
|
processinginstruction.c cdatasection.c \
|
|
|
|
documentfragment.c domimplementation.c \
|
|
|
|
element.c node.c string_extend.c characterdata.c \
|
|
|
|
documenttype.c domimplementationlist.c entity.c \
|
|
|
|
nodelist.c text.c comment.c domconfiguration.c \
|
2003-07-24 21:18:40 +08:00
|
|
|
domimplementationsource.c entityreference.c \
|
2003-11-30 04:40:18 +08:00
|
|
|
notation.c xpath.c dom_iterators.c \
|
2003-07-01 01:23:52 +08:00
|
|
|
typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
|
2003-12-07 23:41:50 +08:00
|
|
|
$ext_shared)
|
2003-07-01 01:23:52 +08:00
|
|
|
PHP_SUBST(DOM_SHARED_LIBADD)
|
2005-05-07 10:51:53 +08:00
|
|
|
PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
|
2005-02-15 09:44:10 +08:00
|
|
|
PHP_ADD_EXTENSION_DEP(dom, libxml)
|
2003-07-01 01:23:52 +08:00
|
|
|
], [
|
|
|
|
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
|
|
|
|
])
|
2003-06-06 01:06:52 +08:00
|
|
|
fi
|