AC_MSG_ERROR([unable to link with openssl libraries]))
AC_MSG_RESULT(yes)
+ AC_CHECK_DECL(EVP_sha512,
+ [AC_DEFINE([XMLTOOLING_OPENSSL_HAVE_SHA2],[],[Define to 1 if OpenSSL supports the SHA-2 hash family.])],
+ ,[#include <openssl/evp.h>])
+
# restore master libs
LIBS="$save_LIBS"
[AC_DEFINE([XMLTOOLING_XMLSEC_SIGALGORITHM], [1], [Define to 1 if XML-Security-C exposes the signature algorithm URI.])],
[AC_MSG_RESULT([no])])
+ AC_MSG_CHECKING([whether XML-Security-C includes ECC support])
+ AC_TRY_COMPILE([#include <xsec/dsig/DSIGKeyInfoValue.hpp>],
+ [DSIGKeyInfoValue* info; info->getECNamedCurve();],
+ [AC_MSG_RESULT([yes])]
+ [AC_DEFINE([XMLTOOLING_XMLSEC_ECC], [1], [Define to 1 if XML-Security-C includes ECC support.])],
+ [AC_MSG_RESULT([no])])
+
+ AC_MSG_CHECKING([whether XML-Security-C includes debug logging support])
+ AC_TRY_COMPILE([#include <xsec/utils/XSECPlatformUtils.hpp>],
+ [XSECPlatformUtils::SetReferenceLoggingSink(NULL)],
+ [AC_MSG_RESULT([yes])]
+ [AC_DEFINE([XMLTOOLING_XMLSEC_DEBUGLOGGING], [1], [Define to 1 if XML-Security-C includes debug logging support.])],
+ [AC_MSG_RESULT([no])])
+
# restore master libs
LIBS="$save_LIBS"