From: foobar Date: Mon, 9 Sep 2002 18:17:12 +0000 (+0000) Subject: Version check for Sablotron. X-Git-Tag: RELEASE_0_91~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=faf99342725f7305ddfdf5d6e60d4bbb334c4859;p=php Version check for Sablotron. --- 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