From 69a3871fdd223612f554b8d7eeebddae3fc67ace Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 20 Nov 2023 14:58:40 +0100 Subject: [PATCH] btrfs-progs: build: fix reported version of crypto libraries The option --version actually reports version of pkg-config not the module/library we're interested in. Signed-off-by: David Sterba --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 1850048b..3b2b7452 100644 --- a/configure.ac +++ b/configure.ac @@ -253,17 +253,17 @@ elif test "$with_crypto" = "libgcrypt"; then cryptoprovider="libgcrypt" PKG_CHECK_MODULES(GCRYPT, [libgcrypt >= 1.8.0]) CRYPTOPROVIDER_LIBGCRYPT=1 - cryptoproviderversion=`${PKG_CONFIG} libgcrypt --version` + cryptoproviderversion=`${PKG_CONFIG} libgcrypt --modversion` elif test "$with_crypto" = "libsodium"; then cryptoprovider="libsodium" PKG_CHECK_MODULES(SODIUM, [libsodium >= 1.0.4]) CRYPTOPROVIDER_LIBSODIUM=1 - cryptoproviderversion=`${PKG_CONFIG} libsodium --version` + cryptoproviderversion=`${PKG_CONFIG} libsodium --modversion` elif test "$with_crypto" = "libkcapi"; then cryptoprovider="libkcapi" PKG_CHECK_MODULES(KCAPI, [libkcapi >= 1.0.0]) CRYPTOPROVIDER_LIBKCAPI=1 - cryptoproviderversion=`${PKG_CONFIG} libkcapi --version` + cryptoproviderversion=`${PKG_CONFIG} libkcapi --modversion` else AC_MSG_ERROR([unrecognized crypto provider: $with_crypto]) fi