Re: AC_INIT receiving PACKAGE_VERSION from outside

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

 



Sam Steingold wrote:
> > 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?
> ...
> Specifically, the code above will result in empty PACKAGE_* variables.

Yes, the PACKAGE_* variables are empty afterwards. If you need them, you
have to assign them explicitly:
  PACKAGE_NAME='my package'
  PACKAGE_VERSION=$VERSION_NUMBER
  etc.

Bruno



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux