From: Scott Cantor Date: Thu, 8 Apr 2004 23:26:08 +0000 (+0000) Subject: Added version check for saml X-Git-Tag: 1.2.1~237 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=5542df3be7c598d413c9e17f6d5076723c06db65;p=shibboleth%2Fcpp-sp.git Added version check for saml --- diff --git a/configure.ac b/configure.ac index bf80d8a..7a46547 100644 --- a/configure.ac +++ b/configure.ac @@ -152,11 +152,15 @@ AC_CHECK_HEADER([saml/saml.h],, AC_MSG_ERROR([unable to find saml header files])) LIBS="-lsaml $LIBS" AC_TRY_LINK( - [#include ], - [saml::SAMLConfig::getConfig()], + [#include +#include ], + [#if _OPENSAML_VERSION >= 10000 +saml::SAMLConfig::getConfig(); +#else +#error Need OpenSAML version 1.0 or higher +#endif], [AC_DEFINE(HAVE_SAML,1,[Define if saml library was found])], - [AC_MSG_ERROR([unable to link with saml])]) - + [AC_MSG_ERROR([unable to link with saml, or version too old])]) # output the underlying makefiles WANT_SUBDIRS="doc shib schemas configs shib-target shar siterefresh test xmlproviders"