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: Simon Josefsson
Subject: [Bug-gnulib] Re: Docs for gnulib-tool --import
Date: Wed, 06 Oct 2004 17:14:00 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

"Gary V. Vaughan" <address@hidden> writes:

> Hi Simon,
>
> Simon Josefsson wrote:
>> address@hidden
>> +...
>> +AC_PROG_CC
>> +gl_EARLY
>> +...
>> +# For gnulib.
>> +gl_SOURCE_BASE(gl)
>> +gl_M4_BASE(gl/m4)
>> +gl_LIB(libgl)
>> +gl_MODULES(getopt progname strdup dummy exit error getpass-gnu getaddrinfo)
>> +gl_INIT
>> +...
>> address@hidden example
>
> I think I would rather see less macros, like this:
>
> AC_PROG_CC
> gl_EARLY
> ...
> gl_MODULES([getopt progname strdup dummy ...])
> gl_INIT([gl], [gl/m4], [libgl])
> ...
>
> where defaults are used if the arguments are missing instead of needing a
> whole extra macro call.

Yes, I agree.  I'm experimenting with something inspired by your other
post, e.g.:

gl_INIT([getopt progname strdup dummy ...], [gl], [gl/m4], [libgl], [LGPL])

Or possibly something like:

gl_INIT([[strdup dummy ...], [lgl], [lgl/m4], [liblgl], [LGPL]],
        [[error getopt progname ...], [gl], [gl/m4], [libgl]])

Renaming LTLIBOBJ variable temporarily worked, but I haven't not
tested all combinations (e.g., with/without libtool).

I don't think we can get rid of gl_EARLY, though, unless it is
possible to hook into AC_PROG_CC automatically somehow.

I wish there were some non-positional way to specify function
parameters in M4, though.  E.g., lisp inspired:

gl_INIT(:module [getopt progname strdup dummy ...], :sourcebase [gl], :license 
[LGPL])

It is not clear which priority the parameters should have.

Alas, I won't have time to work on this until next week.

Thanks.




reply via email to

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