[Mesa-dev] [PATCH 07/13] autotools: set XA versions in configure.ac and configure header file
Dylan Baker
dylan at pnwbakers.com
Tue Nov 7 00:30:34 UTC 2017
Quoting Emil Velikov (2017-11-02 07:00:16)
> On 1 November 2017 at 22:49, Dylan Baker <dylan at pnwbakers.com> wrote:
> > Currently the versions are set in the header, and then sed is used to
> > extract them, so that autotools can use them elsewhere.
> >
> > This is odd. Autotools is perfectly capable of configuring the header
> > with the versions, and then they don't need to be extracted from the
> > the header. This is cleaner and more obvious.
> >
> > Tested with make distcheck.
> >
> The idea was to have a place (like VERSION) to grab the version and
> reuse across the board.
> Since nobody the only other user can handle .in files - it makes sense
> to remove the rather nasty construct.
>
>
> > +XA_VERSION_MAJOR=2
> > +AC_SUBST([XA_VERSION_MAJOR])
> Please drop the _VERSION bit and temporary variables.
XA_VERSION is used in the xatracker.pc file, do you want a separate change to
replace that with major.minor.tiny? I can certainly add that to v2.
> It make inconsistent with the rest of Mesa.
>
> AC_SUBST([XA_MAJOR], 2)
> AC_SUBST([XA_MINOR], 2)
> AC_SUBST([XA_TINY], 0)
>
> With the above
> Reviewed-by: Emil Velikov <emli.velikov at collabora.com>
>
> The tiny -> patch change is good, but please keep that separate change
> and update nine for consistency.
>
> Thanks
> Emil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171106/e8218836/attachment.sig>
More information about the mesa-dev
mailing list