From: Scott Cantor Date: Thu, 26 Apr 2007 20:30:57 +0000 (+0000) Subject: Add xmlsec version check. X-Git-Tag: 2.0-alpha1~43 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=1b6c6afc5984eadf17a8e7f51231ceb8b79f49b9 Add xmlsec version check. --- diff --git a/configure.ac b/configure.ac index 27d37e7..63f0f97 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,16 @@ AC_ARG_WITH(xmlsec, fi]) LIBS="-lxml-security-c $LIBS" AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find xmlsec header files])) +AC_MSG_CHECKING([XML-Security version]) +AC_PREPROC_IFELSE( + [AC_LANG_PROGRAM([#include ], + [#if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3) || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM == 3 && XSEC_VERSION_MINOR > 0) +int i = 0; +#else +#error need version 1.3.1 or later +#endif])], + [AC_MSG_RESULT(OK)], + [AC_MSG_FAILURE([XML-Security version 1.3.1 or greater is required.])]) AC_TRY_LINK( [#include ], [XSECPlatformUtils::Initialise()],