summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-24 10:18:16 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-04-24 10:18:16 +0200
commit69f8fad56e942054bda1f7623de09c525c62b6c1 (patch)
tree722433f501dcaf2af9d89e2f2849591943644091
parentf225e568840aa0233fd41b7ccd838e8ba2031bf9 (diff)
fix #6220
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b6e44f90e..bfaf8cf14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1033,8 +1033,15 @@ AS_IF([test x$nss = xfalse],
AC_CHECK_LIB([kvm],[kvm_open])
AC_CHECK_LIB([kstat],[kstat_open])
+argon=0
# test for argon2 (for POW)
-AC_CHECK_LIB([argon2],[argon2d_hash_raw])
+AC_CHECK_LIB([argon2],[argon2d_hash_raw], argon=1, argon=0)
+AS_IF([test x$argon = x1],
+[
+ AC_MSG_RESULT([argon2 found])
+],[
+ AC_MSG_ERROR([GNUnet requires argon2.])
+])
# test for libextractor
extractor=0