bug-gnulib
[Top][All Lists]
Advanced

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

Re: Way to determine autotools dependencies automatically?


From: Eric Blake
Subject: Re: Way to determine autotools dependencies automatically?
Date: Fri, 18 Mar 2011 15:03:01 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 03/18/2011 02:58 PM, Reuben Thomas wrote:
> On 18 March 2011 20:56, Eric Blake <address@hidden> wrote:
>> On 03/18/2011 02:53 PM, Reuben Thomas wrote:
>>> Just now doing a git merge I caught sight of an AC_PREREQ line in one
>>> .m4 file. Is there a built-in way to extract the required versions of
>>> autoconf, automake &c. from an autotools build system? (I can't find
>>> an answer, but there's an awful lot of cool undocumented stuff in
>>> there at present.)
>>
>> autoconf --trace AC_PREREQ
>>
>> and look through that for the largest number.

As a note of caution, note that just inspecting trace output might not
tell you the whole story.  If you use automake 1.11, you will get an
AC_PREREQ of autoconf 2.62 from AM_INIT_AUTOMAKE.  But gnulib can be
used with anything as old as autoconf 2.59, provided you are also using
an older automake to go with it (and once you do switch to an older
automake, you will no longer see the AC_PREREQ 2.62 in the trace).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]