Re: New propossed GnomeGoal: Modernize your autotools configuration



On 1/25/10 9:26 PM, Javier Jardón wrote:
> Hello,
> 
> I just made a blog post [1] and thought that maybe this can be useful
> to all because autotools is the most common system [2] to build
> programs in GNOME.
> The idea is that remove deprecated macros from our configure.ac files
> and use the new syntax will do our build system more legible and
> portable.
> 
> Autotools comes with a tool that do the work for us: simply run
>> autoupdate
> in you source tree and you have a new updated configure.ac. (Check the
> result for possibles errors)
> 
> You can see more tips and links to the documentation in the GnomeGoal
> page: [3], for example:
> 
> - Use all the parameters of AC_INIT(), (for the fifth parameter you
> need autoconf >= 2.63.2):
> - Use LT_INIT() syntax for libtool (needs libtool >= 2.2.0)
> - Use AM_INIT_AUTOMAKE() new syntax: AM_INIT_AUTOMAKE([1.10 dist-bzip2])
> 
> Any improvement/suggestion/comment welcomed

In the ballpark of this sort of activity, another suggestion: correctly
apply Requires.private in .pc files.

It looks like the GNOME stack is using Requires all over the place where
Requires.private is really appropriate.  This has the consequence of
introducing lots of spurious dependencies.

See <http://err.no/personal/blog/2008/Mar/25>.  To summarize, if you
have a package written in C, Requires.private should be your default
choice (instead of Requires).

-- 
Braden McDaniel <braden endoframe com>


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