From: Scott Cantor Date: Thu, 22 Jul 2010 19:00:10 +0000 (+0000) Subject: Check for xmltooling >= 1.4 X-Git-Tag: 2.4RC1~49 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=48ddc68b48bbc752bbf044dce2c71e0af115d447 Check for xmltooling >= 1.4 --- diff --git a/configure.ac b/configure.ac index 948585a..a265891 100644 --- a/configure.ac +++ b/configure.ac @@ -243,9 +243,19 @@ AC_ARG_WITH(xmltooling, fi]) LIBS="-lxmltooling $LIBS" AC_CHECK_HEADER([xmltooling/XMLToolingConfig.h],,AC_MSG_ERROR([unable to find xmltooling header files])) + 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])])