[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg-config
From: |
Ludovic Courtès |
Subject: |
Re: pkg-config |
Date: |
Mon, 12 Jun 2006 09:42:59 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Hi,
Aaron VanDevender <address@hidden> writes:
> Is there a better way to do autoconf tests for guile versions that hacks
> like this:
>
> GUILE_VERSION = `$GUILE --version | head -1 | cut -d ' ' -f 2`
Yes, you'd rather use the M4 macros shipped in `guile.m4' and that were
documented in the 1.6 manual [0] (for some reason, this part of the
documentation vanished in 1.8).
For instance, you could use the following tests within your `configure.ac':
GUILE_PROGS
GUILE_CHECK_RETVAL([correct_version_p],
[(exit (string>=? (version) "1.6.7"))])
Hope this helps,
Ludovic.
[0]
http://www.gnu.org/software/guile/docs/docs-1.6/guile-ref/Autoconf-Macros.html#Autoconf%20Macros