[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bootstrap: AC_INIT may have up to five fields
From: |
Eric Blake |
Subject: |
Re: [PATCH] bootstrap: AC_INIT may have up to five fields |
Date: |
Thu, 09 May 2013 10:47:15 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 |
On 05/09/2013 10:01 AM, Thien-Thi Nguyen wrote:
> () Sami Kerola <address@hidden>
> () Wed, 8 May 2013 20:33:03 +0100
>
> [sed script]
>
> Instead of trying to mimic autoconf, why not ask it directly for the
> ‘AC_INIT’ field values, formatted in some convenient way? For example:
IIUC, Gary Vaughan's attempt to overhaul the bootstrap script would take
advantage of 'autoconf --trace' and other tools to get reliable
information. I still feel bad that I haven't spent any review time on that.
I agree that the best way to learn what m4 will expand a macro to is to
use m4 to do the macro expansion, not sed. It's just that it's faster
to fix a sed-script within existing framework than it is to redesign the
framework to be more powerful.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature