From: Alexander Aring <aahringo@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH dlm/tool 2/2] dlm_controld: add version check for libquorum
Date: Tue, 7 Sep 2021 12:21:49 -0400 [thread overview]
Message-ID: <20210907162149.1442293-2-aahringo@redhat.com> (raw)
In-Reply-To: <20210907162149.1442293-1-aahringo@redhat.com>
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
prev parent reply other threads:[~2021-09-07 16:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 16:21 [Cluster-devel] [PATCH dlm/tool 1/2] treewide: try to resolve symbols at linking time Alexander Aring
2021-09-07 16:21 ` Alexander Aring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210907162149.1442293-2-aahringo@redhat.com \
--to=aahringo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).