From 0516d192e0dc23db362dbb1724365b54f740e8db Mon Sep 17 00:00:00 2001 From: Sven Kirmess Date: Sat, 6 Jun 2026 19:14:10 +0200 Subject: [PATCH] configure: don't require corosync libs when --disable-qdevices is used libcorosync_common, libcmap and libvotequorum are only needed by corosync-qdevice, not by corosync-qnetd. Move the PKG_CHECK_MODULES calls for these libraries inside the enable_qdevices conditional so that systems without corosync installed can still build corosync-qnetd with --disable-qdevices. Co-Authored-By: Claude Sonnet 4.6 --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8628588..87fc3bf 100644 --- a/configure.ac +++ b/configure.ac @@ -101,9 +101,6 @@ AC_TYPE_SSIZE_T # Checks for libraries. PKG_CHECK_MODULES([nss],[nss]) -PKG_CHECK_MODULES([corosync_common], [libcorosync_common]) -PKG_CHECK_MODULES([cmap], [libcmap]) -PKG_CHECK_MODULES([votequorum], [libvotequorum]) AC_CONFIG_FILES([Makefile qdevices/Makefile @@ -185,6 +182,11 @@ AC_ARG_ENABLE([qdevices], [ --disable-qdevices : Quorum devices support ],, [ enable_qdevices="yes" ]) AM_CONDITIONAL(BUILD_QDEVICES, test x$enable_qdevices = xyes) +if test "x${enable_qdevices}" = xyes; then + PKG_CHECK_MODULES([corosync_common], [libcorosync_common]) + PKG_CHECK_MODULES([cmap], [libcmap]) + PKG_CHECK_MODULES([votequorum], [libvotequorum]) +fi AC_ARG_ENABLE([qnetd], [ --disable-qnetd : Quorum Net Daemon support ],, [ enable_qnetd="yes" ])