From 30948a65e444d05006a38cce65fb6d3188dc2bb7 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 08c6a8cb5d..918ae5f766 100644 --- a/configure.ac +++ b/configure.ac @@ -310,7 +310,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 ],