From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Tue, 7 Sep 2021 12:21:49 -0400 Subject: [Cluster-devel] [PATCH dlm/tool 2/2] dlm_controld: add version check for libquorum In-Reply-To: <20210907162149.1442293-1-aahringo@redhat.com> References: <20210907162149.1442293-1-aahringo@redhat.com> Message-ID: <20210907162149.1442293-2-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch adds a simple version check for libquorum. Since commit 2e893b98 ("dlm_controld: use new quorum api to detect missed failures") dlm_controld uses functionality which is only available in libquorum 3.1.0 and upwards. --- dlm_controld/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile index 66799807..8cfc97e6 100644 --- a/dlm_controld/Makefile +++ b/dlm_controld/Makefile @@ -60,6 +60,10 @@ ifeq ($(USE_SD_NOTIFY),yes) BIN_LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd) endif +ifeq (, $(shell $(PKG_CONFIG) --libs "libquorum >= 3.1.0")) + $(error "Requires libquorum at least version 3.1.0") +endif + all: $(LIB_TARGET) $(BIN_TARGET) $(LIB_PC) $(BIN_TARGET): $(BIN_SOURCE) -- 2.27.0