bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] Re: Docs for gnulib-tool --import


From: Gary V. Vaughan
Subject: [Bug-gnulib] Re: Docs for gnulib-tool --import
Date: Tue, 12 Oct 2004 15:05:17 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Hi Simon,

Simon Josefsson wrote:
> "Gary V. Vaughan" <address@hidden> writes:
>>gl_INIT([strdup dummy ...],
>>            [source_base=lgl; m4_base=lgl/m4; lib=liblgl; license=LGPL],
>>        [error getopt progname ...],
>>            [source_base=gl; m4_base=gl/m4; lib=libgl])
>>
> 
> I like this approach better.  Perhaps the variables should be slightly
> more official looking though; a'la gl_source_base, gl_m4_base,
> gl_library_name etc.

In the configure code, sure.  But it is just noise in the invocation.  I
would make the transformation in the implementation of gl_INIT:

m4_patsubsts([$2],
             [source_base=], [gl_\&],
             [m4_base=], [gl_\&],
             ...)

(You can do a better job of pattern matching, and substitute all the variables
from a single alternation match expression, but I can't remember the syntax of
the top of my head).

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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