2003-06-05 17:06:52 +00:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
2003-06-30 17:23:52 +00:00
|
|
|
PHP_ARG_ENABLE(dom, whether to enable DOM support,
|
2007-07-03 17:25:43 +00:00
|
|
|
[ --disable-dom Disable DOM support], yes)
|
2003-06-05 17:06:52 +00:00
|
|
|
|
2003-06-30 17:23:52 +00:00
|
|
|
if test -z "$PHP_LIBXML_DIR"; then
|
|
|
|
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
|
2005-05-29 23:17:16 +00:00
|
|
|
[ --with-libxml-dir[=DIR] DOM: libxml2 install prefix], no, no)
|
2003-06-05 17:06:52 +00:00
|
|
|
fi
|
|
|
|
|
2005-04-27 13:12:55 +00: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-05 17:06:52 +00:00
|
|
|
|
2003-06-30 17:23:52 +00: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 13:18:40 +00:00
|
|
|
domimplementationsource.c entityreference.c \
|
2003-11-29 20:40:18 +00:00
|
|
|
notation.c xpath.c dom_iterators.c \
|
2003-06-30 17:23:52 +00:00
|
|
|
typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
|
2003-12-07 15:41:50 +00:00
|
|
|
$ext_shared)
|
2003-06-30 17:23:52 +00:00
|
|
|
PHP_SUBST(DOM_SHARED_LIBADD)
|
2005-05-07 02:51:53 +00:00
|
|
|
PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
|
2005-02-15 01:44:10 +00:00
|
|
|
PHP_ADD_EXTENSION_DEP(dom, libxml)
|
2003-06-30 17:23:52 +00:00
|
|
|
], [
|
|
|
|
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
|
|
|
|
])
|
2003-06-05 17:06:52 +00:00
|
|
|
fi
|