From 12f9eeb2ce9048123ed717c2ca4a6417e920afc2 Mon Sep 17 00:00:00 2001 From: cantor Date: Thu, 8 Apr 2004 23:26:08 +0000 Subject: [PATCH] Added version check for saml git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@973 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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" -- 2.1.4