mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00: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:
parent
b6e3e0f601
commit
faaf455026
@ -257,7 +257,12 @@ esac
|
|||||||
# Checks for libraries
|
# Checks for libraries
|
||||||
AC_CHECK_LIB([pthread], [pthread_create])
|
AC_CHECK_LIB([pthread], [pthread_create])
|
||||||
AC_CHECK_LIB([rt], [clock_gettime])
|
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
|
# Check if the compiler supports -fvisibility=hidden flag. MinGW32 uses __declspec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user