[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking for guile from configure -- forward compat.
From: |
Peter Brett |
Subject: |
Re: Checking for guile from configure -- forward compat. |
Date: |
Fri, 14 Aug 2009 08:26:41 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Peter TB Brett <address@hidden> writes:
> Hi everyone,
>
> Currently, there appear to be two ways to check for the presence of
> Guile:
>
> PKG_CHECK_MODULES(GUILE, [guile-1.8])
>
> Or:
>
> GUILE_FLAGS
>
> Unfortunately, the first of these *only* works for Guile 1.8 -- so if
> some has, at some point in the future, Guile 2.x, we'll have to add
> some m4 magic for sequentially trying 1.8 and every valid x for 2.x.
>
> On the other hand, GUILE_FLAGS uses the guile-config tool, which IIRC is
> going to go away Soon (tm).
>
> What would you recommend as the Right Way to check for Guile 1.8.0 or
> later in my configure script and set the appropriate flags, in a
> forward-compatible way? Or am I just going to have to write a pile of
> crufty m4/shell?
We ended up writing a pile of crufty m4/shell, which:
- checks for guile-1.8.pc
- if that fails, checks for guile-2.0.pc
- if that fails, checks for guile-config
http://git.gpleda.org/?p=gaf.git;a=blob;f=m4/geda-guile.m4;hb=HEAD
Ewww.
Peter
--
Peter Brett <address@hidden>
Remote Sensing Research Group
Surrey Space Centre
Re: Checking for guile from configure -- forward compat.,
Peter Brett <=