From: Florian Dold Date: Wed, 6 May 2020 10:39:43 +0000 (+0530) Subject: check for libsodium X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35698918f80cb0b10c21fa450bf265564faf981a;p=oweals%2Fgnunet.git check for libsodium --- 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)