From 48ddc68b48bbc752bbf044dce2c71e0af115d447 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 22 Jul 2010 19:00:10 +0000 Subject: [PATCH] Check for xmltooling >= 1.4 --- configure.ac | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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])]) -- 2.1.4