2003-10-20 05:48:46 +08:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
PHP_ARG_ENABLE(libxml, whether to enable LIBXML support,
|
2007-07-04 01:24:39 +08:00
|
|
|
[ --disable-libxml Disable LIBXML support], yes)
|
2003-10-20 05:48:46 +08:00
|
|
|
|
|
|
|
if test -z "$PHP_LIBXML_DIR"; then
|
|
|
|
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
|
2007-07-04 01:24:39 +08:00
|
|
|
[ --with-libxml-dir[=DIR] LIBXML: libxml2 install prefix], no, no)
|
2003-10-20 05:48:46 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$PHP_LIBXML" != "no"; then
|
|
|
|
|
2003-11-13 07:42:38 +08:00
|
|
|
dnl This extension can not be build as shared
|
|
|
|
ext_shared=no
|
|
|
|
|
2003-10-20 05:48:46 +08:00
|
|
|
PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [
|
|
|
|
AC_DEFINE(HAVE_LIBXML,1,[ ])
|
2003-11-13 07:42:38 +08:00
|
|
|
PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared)
|
2005-05-07 10:51:53 +08:00
|
|
|
PHP_INSTALL_HEADERS([ext/libxml/php_libxml.h])
|
2003-10-20 05:48:46 +08:00
|
|
|
], [
|
|
|
|
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
|
|
|
|
])
|
|
|
|
fi
|