From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mathieu Lirzin Newsgroups: gmane.lisp.guile.bugs Subject: bug#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing Date: Sat, 9 May 2020 01:02:01 +0200 Message-ID: <20200508230201.31553-1-mthl@gnu.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="40196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mathieu Lirzin To: 41142@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat May 09 01:04:08 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXC2K-000AMH-AU for guile-bugs@m.gmane-mx.org; Sat, 09 May 2020 01:04:08 +0200 Original-Received: from localhost ([::1]:55966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXC2I-00016u-N4 for guile-bugs@m.gmane-mx.org; Fri, 08 May 2020 19:04:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXC2E-00016l-ND for bug-guile@gnu.org; Fri, 08 May 2020 19:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXC2E-0003IP-Cf for bug-guile@gnu.org; Fri, 08 May 2020 19:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXC2E-0001tb-6a for bug-guile@gnu.org; Fri, 08 May 2020 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mathieu Lirzin Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 08 May 2020 23:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41142 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15889789837206 (code B ref -1); Fri, 08 May 2020 23:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2020 23:03:03 +0000 Original-Received: from localhost ([127.0.0.1]:46459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXC15-0001rd-En for submit@debbugs.gnu.org; Fri, 08 May 2020 19:03:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXC13-0001rU-Kg for submit@debbugs.gnu.org; Fri, 08 May 2020 19:02:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXC13-00010f-Cs for bug-guile@gnu.org; Fri, 08 May 2020 19:02:49 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXC12-0000Aa-Es; Fri, 08 May 2020 19:02:49 -0400 X-Originating-IP: 109.10.63.85 Original-Received: from localhost.localdomain (85.63.10.109.rev.sfr.net [109.10.63.85]) (Authenticated sender: mthl@reuz.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 45F5720003; Fri, 8 May 2020 23:02:44 +0000 (UTC) X-Mailer: git-send-email 2.20.1 Received-SPF: softfail client-ip=217.70.183.200; envelope-from=mthl@gnu.org; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/08 19:02:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L3=0.001, SPF_SOFTFAIL=0.665 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9755 Archived-At: * 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