autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Computed version number in configure.ac


From: Akim Demaille
Subject: Re: Computed version number in configure.ac
Date: 14 Mar 2002 18:42:54 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| Hello,
| In my configure.ac I get the version number from the NEWS file, this used
| to work but does not anymore with autoconf-2.53.
| 
| I used :
| 
| AC_INIT([src/gliv.c])
| read version < $srcdir/NEWS
| AM_INIT_AUTOMAKE([gliv], [$version])
| 
| but now, with
| 
| AC_INIT([gliv], [$(head -n 1 NEWS)])
| 
| autoconf complains the version arg is not a litteral.
| 
| So here is my question :
| How to use a computed version number in configure.ac ?

If I were you, I would not try to do that, but that's only my opinion,
no flamewar needed.

/tmp % cat configure.ac                                          nostromo 18:42
AC_INIT([Foo], esyscmd([cat version | tr -d '\n']), address@hidden)
/tmp % autoconf                                                  nostromo 18:42
/tmp % ./configure --version                                     nostromo 18:42
Foo configure Dead broken.
generated by GNU Autoconf 2.53a

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]