0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

configure: Fix sodium variable assignments.

This commit is contained in:
Jason Volk 2019-06-13 16:26:53 -07:00
parent 85c6fc82c7
commit 992ed22846

View file

@ -1083,6 +1083,7 @@ PKG_CHECK_MODULES(SODIUM, libsodium,
AC_CHECK_LIB([sodium], sodium_init,
[
have_sodium="yes"
SODIUM_LIBS+=" -lsodium"
], [
have_sodium="no"
])
@ -1093,7 +1094,6 @@ AM_CONDITIONAL([SODIUM], [test "x$have_sodium" = "xyes"])
AM_COND_IF([SODIUM],
[
AC_DEFINE([HAVE_SODIUM], [1], [Have libsodium])
SODIUM_LIBS+="-lsodium"
], [
AC_MSG_ERROR([libsodium is required but not found. Try apt-get install libsodium-dev])
])