Computed version number in configure.ac

2002-03-13 Thread Guillaume Chazarain
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 compla

Re: Computed version number in configure.ac

2002-03-14 Thread Guillaume Chazarain
>> AC_INIT([gliv], [$(head -n 1 NEWS)]) >> >> autoconf complains the version arg is not a litteral. > >Try something like > >AC_INIT([gliv], [esyscmd([head -n 1 NEWS])]) Well, I couldn't make esyscmd([head -n 1 NEWS]) work in an AC_INIT arg.

Re: Computed version number in configure.ac

2002-03-14 Thread Guillaume Chazarain
>> Well, I couldn't make esyscmd([head -n 1 NEWS]) work in an AC_INIT arg. > > Works here. What's happening in your case? -- > If I were you, I would not try to do that, but that's only my opinion, > no flamewar needed. > > /tmp % cat configure.ac