From 108a0b233bea58b8fd3f624eba81f77304879b87 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sun, 26 Apr 2020 19:26:36 +0200 Subject: configure.ac: fix broken nettle_cfb8_decrypt detection Given the fixed version of the function will be part of Nettle 3.6, use pkg-config --atleast-version instead of a manually comparison of the Nettle version. Fixes #974. Signed-off-by: Daiki Ueno --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index fb24986bb6..b5781fc58f 100644 --- a/configure.ac +++ b/configure.ac @@ -602,9 +602,8 @@ LIBS=$save_LIBS # Check if nettle has CFB8 support if test -z "$ac_cv_func_nettle_cfb8_encrypt"; then - # nettle_cfb8_decrypt in nettle 3.5 is known to be broken - ver=`$PKG_CONFIG --modversion nettle` - if expr "$ver" : '^3\.5\b' >/dev/null; then + # nettle_cfb8_decrypt in nettle upto 3.6 is known to be broken + if ! $PKG_CONFIG --atleast-version=3.6 nettle; then ac_cv_func_nettle_cfb8_encrypt=no fi fi -- cgit v1.2.1