On 03/18/2011 02:58 PM, Reuben Thomas wrote:
> On 18 March 2011 20:56, Eric Blake <[email protected]> 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   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to