From ce8e6c8c6335bbe24b30c1e23c5503a8f1094c23 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 26 Nov 2024 14:34:49 +0100 Subject: [PATCH] configure.ac: build lvmlockd with notify Automatically use --enable-notify-dbus when building lvmlockd if not configured otherwise by a configure user - as the lvmlockd.service is notify based. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cbea6adc6..f6956657d 100644 --- a/configure.ac +++ b/configure.ac @@ -1234,7 +1234,8 @@ AC_ARG_ENABLE(notify-dbus, [NOTIFYDBUS_SUPPORT=$enableval]) AS_IF([test "$NOTIFYDBUS_SUPPORT" = "maybe"], - [AS_IF([test "$BUILD_LVMDBUSD" = "yes"], [NOTIFYDBUS_SUPPORT="yes"], [NOTIFYDBUS_SUPPORT="no"])]) + [AS_IF([test "$BUILD_LVMDBUSD" = "yes" || test "$BUILD_LVMLOCKD" = "yes"], + [NOTIFYDBUS_SUPPORT="yes"], [NOTIFYDBUS_SUPPORT="no"])]) AS_IF([test "$NOTIFYDBUS_SUPPORT" = "yes"], [AS_IF([test "$SYSTEMD_MIN_VERSION" -lt 221], @@ -2075,3 +2076,6 @@ AS_IF([test "$ODIRECT" != "yes"], AS_IF([test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no"], [AC_MSG_WARN([Building D-Bus support without D-Bus notifications!])]) + +AS_IF([test "$BUILD_LVMLOCKD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no"], + [AC_MSG_WARN([Building lvmlockd without D-Bus notifications may block!])])