mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
8d3f8ca12a
The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
dnl config.m4 for extension wddx
|
|
|
|
PHP_ARG_ENABLE(wddx,whether to enable WDDX support,
|
|
[ --enable-wddx Enable WDDX support])
|
|
|
|
if test -z "$PHP_LIBXML_DIR"; then
|
|
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
|
|
[ --with-libxml-dir=DIR WDDX: libxml2 install prefix], no, no)
|
|
fi
|
|
|
|
PHP_ARG_WITH(libexpat-dir, libexpat dir for WDDX,
|
|
[ --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)],no,no)
|
|
|
|
if test "$PHP_WDDX" != "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([WDDX extension requires LIBXML extension, add --enable-libxml])
|
|
fi
|
|
|
|
PHP_SETUP_LIBXML(WDDX_SHARED_LIBADD, [
|
|
if test "$PHP_XML" = "no"; then
|
|
PHP_ADD_SOURCES(ext/xml, compat.c)
|
|
PHP_ADD_BUILD_DIR(ext/xml)
|
|
fi
|
|
], [
|
|
AC_MSG_ERROR([libxml2 not found. Use --with-libxml-dir=<DIR>])
|
|
])
|
|
fi
|
|
|
|
dnl
|
|
dnl Check for expat only if --with-libexpat-dir is used.
|
|
dnl
|
|
if test "$PHP_LIBEXPAT_DIR" != "no"; then
|
|
for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
|
|
if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
|
|
EXPAT_DIR=$i
|
|
break
|
|
fi
|
|
done
|
|
|
|
if test -z "$EXPAT_DIR"; then
|
|
AC_MSG_ERROR([not found. Please reinstall the expat distribution.])
|
|
fi
|
|
|
|
PHP_ADD_INCLUDE($EXPAT_DIR/include)
|
|
PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/$PHP_LIBDIR, WDDX_SHARED_LIBADD)
|
|
AC_DEFINE(HAVE_LIBEXPAT, 1, [ ])
|
|
fi
|
|
|
|
AC_DEFINE(HAVE_WDDX, 1, [ ])
|
|
PHP_NEW_EXTENSION(wddx, wddx.c, $ext_shared)
|
|
PHP_ADD_EXTENSION_DEP(wddx, libxml)
|
|
PHP_SUBST(XMLRPC_SHARED_LIBADD)
|
|
fi
|