|
|
@ -676,6 +676,16 @@ if test x$use_pkgconfig = xyes; then |
|
|
|
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)]) |
|
|
|
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$use_zmq" = "xyes"; then |
|
|
|
|
|
|
|
PKG_CHECK_MODULES([ZMQ],[libzmq >= 4], |
|
|
|
|
|
|
|
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])], |
|
|
|
|
|
|
|
[AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) |
|
|
|
|
|
|
|
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling]) |
|
|
|
|
|
|
|
use_zmq=no]) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) |
|
|
|
|
|
|
|
fi |
|
|
|
] |
|
|
|
] |
|
|
|
) |
|
|
|
) |
|
|
|
else |
|
|
|
else |
|
|
@ -693,6 +703,20 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$use_zmq" = "xyes"; then |
|
|
|
|
|
|
|
AC_CHECK_HEADER([zmq.h], |
|
|
|
|
|
|
|
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])], |
|
|
|
|
|
|
|
[AC_MSG_WARN([zmq.h not found, disabling zmq support]) |
|
|
|
|
|
|
|
use_zmq=no |
|
|
|
|
|
|
|
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])]) |
|
|
|
|
|
|
|
AC_CHECK_LIB([zmq],[zmq_ctx_shutdown],ZMQ_LIBS=-lzmq, |
|
|
|
|
|
|
|
[AC_MSG_WARN([libzmq >= 4.0 not found, disabling zmq support]) |
|
|
|
|
|
|
|
use_zmq=no |
|
|
|
|
|
|
|
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])]) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found))) |
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found))) |
|
|
|
if test x$use_qr != xno; then |
|
|
|
if test x$use_qr != xno; then |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])]) |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])]) |
|
|
@ -824,20 +848,6 @@ if test x$bitcoin_enable_qt != xno; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# conditional search for and use libzmq |
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build ZMQ support]) |
|
|
|
|
|
|
|
if test "x$use_zmq" = "xyes"; then |
|
|
|
|
|
|
|
AC_MSG_RESULT([yes]) |
|
|
|
|
|
|
|
PKG_CHECK_MODULES([ZMQ],[libzmq >= 4], |
|
|
|
|
|
|
|
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])], |
|
|
|
|
|
|
|
[AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) |
|
|
|
|
|
|
|
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling]) |
|
|
|
|
|
|
|
use_zmq=no]) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
AC_MSG_RESULT([no, --disable-zmq used]) |
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"]) |
|
|
|
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"]) |
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build test_bitcoin]) |
|
|
|
AC_MSG_CHECKING([whether to build test_bitcoin]) |
|
|
|