mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 08:46:44 +01:00
Libsodium is now required if and only if --with-libsodium is used
This patch is proposed for https://github.com/zeromq/libzmq/issues/912. If a user specifies that they want libzmq built with libsodium, and the requirement cannot be satisfied, we should error at the user so they can either A) install libsodium to a reasonable location or B) relax their requirement for libsodium support. Previously a warning was issued in this case, causing users who wanted libsodium support not to get it, which may be discovered at a much later time when their programs didn't work as expected. I release this patch under the LGPL v3 or any later version.
This commit is contained in:
parent
b63c5e5469
commit
6009e2c6c4
1
AUTHORS
1
AUTHORS
@ -37,6 +37,7 @@ Dhammika Pathirana <dhammika@gmail.com>
|
|||||||
Dhruva Krishnamurthy <dhruva@ymail.com>
|
Dhruva Krishnamurthy <dhruva@ymail.com>
|
||||||
Dirk O. Kaar <dok@dok-net.net>
|
Dirk O. Kaar <dok@dok-net.net>
|
||||||
Douglas Creager <douglas.creager@redjack.com>
|
Douglas Creager <douglas.creager@redjack.com>
|
||||||
|
Drew Crawford <drew@sealedabstract.com>
|
||||||
Erich Heine <sophacles@gmail.com>
|
Erich Heine <sophacles@gmail.com>
|
||||||
Erik Hugne <erik.hugne@ericsson.com>
|
Erik Hugne <erik.hugne@ericsson.com>
|
||||||
Erik Rigtorp <erik@rigtorp.com>
|
Erik Rigtorp <erik@rigtorp.com>
|
||||||
|
@ -299,7 +299,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$zmq_search_libsodium" = "xyes"; then
|
||||||
|
AC_CHECK_LIB([sodium], [sodium_init],,AC_MSG_ERROR(libsodium is not installed. Install it or don't pass --with-libsodium to configure script))
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB([sodium], [sodium_init],,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