Skip to content

Commit f296a19

Browse files
committed
build: move zeromq config to x_ac_zeromq.m4
Problem: zeromq requires more m4 checks but doesn't have a standalone m4 file. Move the current check to config/x_ac_zeromq.m4. We can build on that.
1 parent a0d9aae commit f296a19

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

config/x_ac_zeromq.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# N.B oldest in CI are focal=libzmq-4.3.2-2, centos7=zeromq-4.1.4
2+
3+
AC_DEFUN([X_AC_ZEROMQ], [
4+
5+
PKG_CHECK_MODULES([ZMQ], [libzmq >= 4.0.4])
6+
7+
]
8+
)

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,7 @@ AM_CONDITIONAL([ENABLE_PYLINT], [test "x$PYLINT" = "xpylint"])
333333
AX_PROG_LUA([5.1],[5.5])
334334
AX_LUA_HEADERS
335335
AX_LUA_LIBS
336-
# N.B oldest in CI are focal=libzmq-4.3.2-2, centos7=zeromq-4.1.4
337-
PKG_CHECK_MODULES([ZMQ], [libzmq >= 4.0.4])
336+
X_AC_ZEROMQ
338337
X_AC_JANSSON
339338
PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd >= 0.23],
340339
[have_libsystemd=yes], [have_libsystemd=no])

0 commit comments

Comments
 (0)