summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndreas Metzler <ametzler@bebt.de>2018-12-01 13:26:20 +0100
committerAndreas Metzler <ametzler@bebt.de>2018-12-01 13:26:20 +0100
commitf7791712665a6b5f2b8ac0840c701b9abc95e92e (patch)
treed8e78a31f5cb661d0d34f0e6d76e382aecbdf15b /m4
parent4353ea025ae032887f3e8cf5aadace25662c6b35 (diff)
downloadgnutls-f7791712665a6b5f2b8ac0840c701b9abc95e92e.tar.gz
Fix error message on old or missing nettle.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Diffstat (limited to 'm4')
-rw-r--r--m4/hooks.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index aebc58214a..86b4b2a0e5 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -68,16 +68,17 @@ AC_DEFUN([LIBGNUTLS_HOOKS],
DLL_SSL_VERSION=`expr ${LT_SSL_CURRENT} - ${LT_SSL_AGE}`
AC_SUBST(DLL_SSL_VERSION)
- PKG_CHECK_MODULES(NETTLE, [nettle >= 3.4.1], [cryptolib="nettle"], [
+NETTLE_MINIMUM=3.4.1
+ PKG_CHECK_MODULES(NETTLE, [nettle >= $NETTLE_MINIMUM], [cryptolib="nettle"], [
AC_MSG_ERROR([[
***
- *** Libnettle 3.4 was not found.
+ *** Libnettle $NETTLE_MINIMUM was not found.
]])
])
- PKG_CHECK_MODULES(HOGWEED, [hogweed >= 3.4.1], [], [
+ PKG_CHECK_MODULES(HOGWEED, [hogweed >= $NETTLE_MINIMUM ], [], [
AC_MSG_ERROR([[
***
- *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
+ *** Libhogweed (nettle's companion library) $NETTLE_MINIMUM was not found. Note that you must compile nettle with gmp support.
]])
])
AM_CONDITIONAL(ENABLE_NETTLE, test "$cryptolib" = "nettle")