[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_INIT receiving PACKAGE_VERSION from outside
From: |
Sam Steingold |
Subject: |
Re: AC_INIT receiving PACKAGE_VERSION from outside |
Date: |
Fri, 11 Mar 2005 10:44:35 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
> * Bruno Haible <address@hidden> [2005-03-11 16:20:29 +0100]:
>
> Stepan Kasal wrote:
>> > . ./version.sh
>> > AC_INIT(my package, ${myversion})
>>
>> this solution doesn't work, as AC_INIT expects that it's arguments are
>> known when m4 runs (ie. when configure is created).
>
> But this one works:
>
> AC_INIT
> AC_CONFIG_SRCDIR(foo.c)
> . $srcdir/version.sh
> AM_INIT_AUTOMAKE(my package, $VERSION_NUMBER)
Are you _sure_ it works?
I think that all PACKAGE_* variables are completely processed by the end
of AC_INIT, so whatever you do with them in AM_INIT_AUTOMAKE is
irrelevant.
Specifically, the code above will result in empty PACKAGE_* variables.
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.mideasttruth.com/> <http://www.dhimmi.com/>
<http://www.memri.org/> <http://www.iris.org.il> <http://pmw.org.il/>
Parachute for sale, used once, never opened, small stain.
- AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/10
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Eric Hanchrow, 2005/03/10
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Stepan Kasal, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/11
- Message not available
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside,
Sam Steingold <=
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/11
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruce Korb, 2005/03/12
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Alexandre Duret-Lutz, 2005/03/17
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Sam Steingold, 2005/03/18
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/18
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Alexandre Duret-Lutz, 2005/03/18
- Re: AC_INIT receiving PACKAGE_VERSION from outside, Bruno Haible, 2005/03/18
Message not available