summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-06 16:09:43 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-06 18:46:49 +0530
commit35698918f80cb0b10c21fa450bf265564faf981a (patch)
tree4bcd26f6df79e277f7896b6163341b8da8ccff36
parenta0a666fb61005f3da542a146988acc44995d5b0c (diff)
check for libsodium
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 089f0493c..94c0a7689 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1046,6 +1046,15 @@ AS_IF([test x$argon = x1],
AC_MSG_ERROR([GNUnet requires argon2.])
])
+libsodium=0
+# test for libsodium
+AC_CHECK_HEADER([sodium.h],
+ [AC_CHECK_LIB([sodium], [sodium_init],
+ [libsodium=1])])
+
+AS_IF([test x$libsodium = x0],
+ [AC_MSG_ERROR([GNUnet requires libsodium.])])
+
# test for libextractor
extractor=0
AC_MSG_CHECKING(for libextractor)