From: cantor Date: Fri, 23 Jul 2010 01:14:45 +0000 (+0000) Subject: Check for xmltooling >= 1.4, opensaml >= 2.4 X-Git-Tag: 2.4~72 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=36300522cee9574da2b2988b672e4d7892a733cd Check for xmltooling >= 1.4, opensaml >= 2.4 git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3267 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configure.ac b/configure.ac index 74d787d..8426585 100644 --- a/configure.ac +++ b/configure.ac @@ -265,10 +265,20 @@ save_LIBS="$LIBS" LIBS="$XMLSEC_LIBS $LIBS" AC_TRY_LINK( - [#include ], - [xmltooling::HTTPResponse::sanitizeURL("http://test")], + [ +#include +#include + ], + [ +#if _XMLTOOLING_VERSION >= 10400 +xmltooling::XMLToolingConfig::getConfig(); +#else +#error Need XMLTooling version 1.4 or higher +#endif + ], [AC_DEFINE(HAVE_XMLTOOLING,1,[Define if xmltooling library was found])], - [AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])]) + [AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])] + ) # restore master libs LIBS="$save_LIBS" @@ -350,15 +360,20 @@ LIBS="$XMLSEC_LIBS $LIBS" AC_CHECK_HEADER([saml/saml2/metadata/Metadata.h],, AC_MSG_ERROR([unable to find OpenSAML header files])) AC_TRY_LINK( - [#include -#include ], - [#if _OPENSAML_VERSION >= 20200 + [ +#include +#include + ], + [ +#if _OPENSAML_VERSION >= 20400 opensaml::SAMLConfig::getConfig(); #else -#error Need OpenSAML version 2.2 or higher -#endif], - [AC_DEFINE(HAVE_SAML,1,[Define if saml library was found])], - [AC_MSG_ERROR([unable to link with OpenSAML, or version was too old])]) +#error Need OpenSAML version 2.4 or higher +#endif + ], + [AC_DEFINE(HAVE_SAML,1,[Define if saml library was found])], + [AC_MSG_ERROR([unable to link with OpenSAML, or version was too old])] + ) # restore master libs LIBS="$save_LIBS"