Skip to content

Commit 10cbae0

Browse files
committed
build: Drop dead non-pkg-config code for ZMQ check
1 parent 06cfc9c commit 10cbae0

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

configure.ac

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,16 +1311,6 @@ if test x$use_pkgconfig = xyes; then
13111311
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads >= 2.0.21],, [AC_MSG_ERROR(libevent_pthreads version 2.0.21 or greater not found.)])
13121312
fi
13131313
fi
1314-
1315-
if test "x$use_zmq" = "xyes"; then
1316-
PKG_CHECK_MODULES([ZMQ],[libzmq >= 4],
1317-
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])],
1318-
[AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
1319-
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling])
1320-
use_zmq=no])
1321-
else
1322-
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
1323-
fi
13241314
]
13251315
)
13261316
else
@@ -1333,26 +1323,24 @@ else
13331323
fi
13341324
fi
13351325

1336-
if test "x$use_zmq" = "xyes"; then
1337-
AC_CHECK_HEADER([zmq.h],
1338-
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])],
1339-
[AC_MSG_WARN([zmq.h not found, disabling zmq support])
1340-
use_zmq=no
1341-
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])])
1342-
AC_CHECK_LIB([zmq],[zmq_ctx_shutdown],ZMQ_LIBS=-lzmq,
1343-
[AC_MSG_WARN([libzmq >= 4.0 not found, disabling zmq support])
1344-
use_zmq=no
1345-
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])])
1346-
else
1347-
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
1348-
fi
1349-
13501326
if test x$use_qr != xno; then
13511327
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
13521328
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
13531329
fi
13541330
fi
13551331

1332+
dnl ZMQ check
1333+
1334+
if test "x$use_zmq" = xyes; then
1335+
PKG_CHECK_MODULES([ZMQ], [libzmq >= 4],
1336+
AC_DEFINE([ENABLE_ZMQ], [1], [Define to 1 to enable ZMQ functions]),
1337+
[AC_DEFINE([ENABLE_ZMQ], [0], [Define to 1 to enable ZMQ functions])
1338+
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling])
1339+
use_zmq=no])
1340+
else
1341+
AC_DEFINE_UNQUOTED([ENABLE_ZMQ], [0], [Define to 1 to enable ZMQ functions])
1342+
fi
1343+
13561344
if test "x$use_zmq" = xyes; then
13571345
dnl Assume libzmq was built for static linking
13581346
case $host in

0 commit comments

Comments
 (0)