From faf99342725f7305ddfdf5d6e60d4bbb334c4859 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 9 Sep 2002 18:17:12 +0000 Subject: [PATCH] Version check for Sablotron. --- ext/xslt/config.m4 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ext/xslt/config.m4 b/ext/xslt/config.m4 index a7c1e50b7a..4b466e0299 100644 --- a/ext/xslt/config.m4 +++ b/ext/xslt/config.m4 @@ -58,6 +58,30 @@ if test "$PHP_XSLT" != "no"; then fi if test "$PHP_XSLT_SABLOT" != "no"; then + AC_MSG_CHECKING([for Sablotron version]) + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS -I$XSLT_DIR/include" + AC_TRY_RUN([ +#include +#include + +int main () +{ + double version; + version = atof(SAB_VERSION); + + if (version >= 0.96) { + exit(0); + } + exit(255); +} + ],[ + AC_MSG_RESULT([>= 0.96]) + ],[ + AC_MSG_ERROR([Sablotron version 0.96 or greater required.]) + ]) + CPPFLAGS=$old_CPPFLAGS + found_expat=no for i in $PHP_EXPAT_DIR $XSLT_DIR /usr/local /usr; do if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME; then -- 2.40.0