Discussion:
Portable way to use appropriate guile executable on different systems
Vladimir Zhbanov
2018-08-14 16:48:51 UTC
Permalink
Hi friends,

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.

Thanks in advance
--
Vladimir
Ludovic Courtès
2018-08-20 13:36:57 UTC
Permalink
Hello Vladimir,
Post by Vladimir Zhbanov
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’.

Loading...