@@ -1587,12 +1587,9 @@ dnl ZMQ check
15871587
15881588if test "$use_zmq" = "yes"; then
15891589 PKG_CHECK_MODULES([ ZMQ] , [ libzmq >= 4] ,
1590- AC_DEFINE ( [ ENABLE_ZMQ] , [ 1] , [ Define to 1 to enable ZMQ functions] ) ,
1591- [ AC_DEFINE ( [ ENABLE_ZMQ] , [ 0] , [ Define to 1 to enable ZMQ functions] )
1592- AC_MSG_WARN ( [ libzmq version 4.x or greater not found, disabling] )
1590+ AC_DEFINE ( [ ENABLE_ZMQ] , [ 1] , [ Define this symbol to enable ZMQ functions] ) ,
1591+ [ AC_MSG_WARN ( [ libzmq version 4.x or greater not found, disabling] )
15931592 use_zmq=no] )
1594- else
1595- AC_DEFINE_UNQUOTED ( [ ENABLE_ZMQ] , [ 0] , [ Define to 1 to enable ZMQ functions] )
15961593fi
15971594
15981595if test "$use_zmq" = "yes"; then
@@ -1608,6 +1605,8 @@ dnl check if libgmp is present
16081605AC_CHECK_HEADER ( [ gmp.h] ,, AC_MSG_ERROR ( libgmp headers missing ) )
16091606AC_CHECK_LIB ( [ gmp] , [ __gmpz_init] ,GMP_LIBS=-lgmp , AC_MSG_ERROR ( libgmp missing ) )
16101607
1608+ AM_CONDITIONAL([ ENABLE_ZMQ] , [ test "$use_zmq" = "yes"] )
1609+
16111610dnl libmultiprocess library check
16121611
16131612libmultiprocess_found=no
@@ -1785,8 +1784,6 @@ if test "$bitcoin_enable_qt" != "no"; then
17851784 fi
17861785fi
17871786
1788- AM_CONDITIONAL([ ENABLE_ZMQ] , [ test "$use_zmq" = "yes"] )
1789-
17901787AC_MSG_CHECKING ( [ whether to build test_dash] )
17911788if test "$use_tests" = "yes"; then
17921789 if test "$enable_fuzz" = "yes"; then
0 commit comments