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 <ueno@gnu.org>
# 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