X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=blobdiff_plain;f=configure.ac;h=7265638684fac2940cf1ca283b8a762567f224ae;hp=32b5c4d48023c6236cafd16301ee8015a5b85efa;hb=ce7abd70f1a7b6d8bf02ff4a23f2e57f2b18fff7;hpb=ffdb36f03ea559ce582d7ee36d877fd184d2b107 diff --git a/configure.ac b/configure.ac index 32b5c4d..7265638 100644 --- a/configure.ac +++ b/configure.ac @@ -258,6 +258,20 @@ LITE_LIBS="-lxmltooling-lite" XMLSEC_LIBS="-lxmltooling" AC_CHECK_HEADER([xmltooling/base.h],, AC_MSG_ERROR([unable to find xmltooling header files])) + + +# save and append master libs +save_LIBS="$LIBS" +LIBS="$XMLSEC_LIBS $LIBS" + +AC_TRY_LINK( + [#include ], + [xmltooling::HTTPResponse::sanitizeURL("http://test")], + [AC_DEFINE(HAVE_XMLTOOLING,1,[Define if xmltooling library was found])], + [AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])]) + +# restore master libs +LIBS="$save_LIBS" # Establish location of xmltooling catalog. XMLTOOLINGXMLDIR=""