From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Portable way to use appropriate guile executable on different systems Date: Mon, 20 Aug 2018 15:36:57 +0200 Message-ID: <87r2itdurq.fsf@gnu.org> References: <20180814164851.n5qjebu6ifir6va6@newvzh.lokolhoz> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1534772401 11152 195.159.176.226 (20 Aug 2018 13:40:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 13:40:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Aug 20 15:39:56 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frkPU-0002je-8B for guile-user@m.gmane.org; Mon, 20 Aug 2018 15:39:56 +0200 Original-Received: from localhost ([::1]:47168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frkRa-0001L6-HE for guile-user@m.gmane.org; Mon, 20 Aug 2018 09:42:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frkMn-0005xq-5n for guile-user@gnu.org; Mon, 20 Aug 2018 09:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frkMk-0004BL-0M for guile-user@gnu.org; Mon, 20 Aug 2018 09:37:09 -0400 Original-Received: from [195.159.176.226] (port=47115 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frkMj-0004AW-QT for guile-user@gnu.org; Mon, 20 Aug 2018 09:37:05 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1frkKa-000569-GL for guile-user@gnu.org; Mon, 20 Aug 2018 15:34:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@blaine.gmane.org X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Fructidor an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Cancel-Lock: sha1:sRhju5sNu6W7AV/vPQL7cJK8g0g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14744 Archived-At: Hello Vladimir, Vladimir Zhbanov skribis: > Is there a portable way to find appropriate guile executable on > different systems using autotools? I.e., I want, e.g. to use > /usr/bin/guile-2.0 on Debian for my program (which cannot compile > with guile-2.2 yet, but 2.2 is also installed on my system), and > just /usr/bin/guile on FreeBSD. You should be able to find out with ‘pkg-config’, provided the .pc files are available: --8<---------------cut here---------------start------------->8--- $ pkg-config guile-2.2 --variable guile /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4/bin/guile $ pkg-config guile-2.2 --variable guild /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4/bin/guild --8<---------------cut here---------------end--------------->8--- HTH! Ludo’.