0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

allow --without-libsodium

and `--with-libsodium=no` to disable linking against libsodium.

Without this patch, it is not possible to disable linking with libsodium present on the default path.
This commit is contained in:
Min RK 2015-02-16 14:59:54 -08:00
parent b6e3e0f601
commit faaf455026

View File

@ -257,7 +257,12 @@ esac
# Checks for libraries
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([rt], [clock_gettime])
AC_CHECK_LIB([sodium], [sodium_init],,AC_MSG_WARN(libsodium is needed for CURVE security))
if test "x$with_libsodium" != "xno"; then
AC_CHECK_LIB([sodium], [sodium_init],,AC_MSG_WARN(libsodium is needed for CURVE security))
else
AC_MSG_WARN(libsodium is needed for CURVE security)
fi
#
# Check if the compiler supports -fvisibility=hidden flag. MinGW32 uses __declspec