Missing guards for xmlsec EC support.
[shibboleth/cpp-xmltooling.git] / configure.ac
index 62e4adf..56c3ba1 100644 (file)
@@ -56,8 +56,8 @@ else
        esac
 fi
 
-AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
+AC_DISABLE_STATIC
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -284,6 +284,10 @@ if test x_$with_xmlsec != x_no; then
                  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"