From 47f4bf5138444d8375daad531a6f5fe177e46195 Mon Sep 17 00:00:00 2001 From: Vincent Thiberville Date: Mon, 3 Oct 2022 16:15:43 +0200 Subject: [PATCH] link against crypt32 if wincrypt is used --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9e4fdc6279..e74d55b965 100644 --- a/configure.ac +++ b/configure.ac @@ -307,7 +307,8 @@ AS_IF([test "x$have_crypto" = "xno"], AC_MSG_CHECKING([for Microsoft Crypto API]) AC_CHECK_HEADERS([wincrypt.h], [ - AC_MSG_RESULT([The "hash" module functions will be provided through the Microsoft Crypto API]) + AC_CHECK_LIB(crypt32, CryptQueryObject) + AC_MSG_RESULT([The "hash" module functions will be provided through the Microsoft Crypto API]) # FIXME: Add PC_LIBS_PRIVATE entries? build_hash_module=true ],