From: Mathieu Lirzin <mthl@gnu.org>
To: 41142@debbugs.gnu.org
Cc: Mathieu Lirzin <mthl@gnu.org>
Subject: bug#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing
Date: Sat, 9 May 2020 01:02:01 +0200 [thread overview]
Message-ID: <20200508230201.31553-1-mthl@gnu.org> (raw)
* meta/guile.m4 (GUILE_PKG): Ensure that 'pkg-config' is available. Use
AC_REQUIRE for PKG_PROG_PKG_CONFIG to avoid unnecessary invocations.
---
meta/guile.m4 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/guile.m4 b/meta/guile.m4
index bc0daaf46..508f8b9d4 100644
--- a/meta/guile.m4
+++ b/meta/guile.m4
@@ -60,7 +60,10 @@
# @code{AC_SUBST}.
#
AC_DEFUN([GUILE_PKG],
- [PKG_PROG_PKG_CONFIG
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+ if test "x$PKG_CONFIG" = x; then
+ AC_MSG_ERROR(["Missing pkg-config"])
+ fi
_guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])"
if test -n "$GUILE_EFFECTIVE_VERSION"; then
_guile_tmp=""
--
2.20.1
next reply other threads:[~2020-05-08 23:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 23:02 Mathieu Lirzin [this message]
2020-05-27 20:22 ` bug#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing Ludovic Courtès
2020-05-27 21:42 ` Mathieu Lirzin
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200508230201.31553-1-mthl@gnu.org \
--to=mthl@gnu.org \
--cc=41142@debbugs.gnu.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).