autoconf
[Top][All Lists]
Advanced

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

Re: iterating over arguments


From: Sam Steingold
Subject: Re: iterating over arguments
Date: Mon, 14 Sep 2009 12:56:58 -0400
User-agent: Thunderbird 2.0.0.22 (X11/20090625)

Eric Blake wrote:

m4_map_args_w([a b c], [pre(], [)post], [
])[]text

expands to:

pre([a])post
pre([b])post
pre([c])post[]text

while without the newline,

m4_map_args_w([a b c], [pre(], [)post])[]text

expands to:

pre([a])post[]pre([b])post[]pre([c])post[]text

So far, so good,


==========================================================

results in this error:
==========================================================
$ make -f Makefile.devel check-configures AUTOCONF='autoconf --trace=CL_CLISP --trace=_CL_CLISP_REQUIRE_FEATURE_2'

Ouch. Running autoconf --trace is meant to be independent of regenerating your makefiles; it does NOT generate a configure file, but rather tells you about what is happening under the hood. You need to run your normal:

$ make -f Makefile.devel check-configures

without any --trace lines added to AUTOCONF to see how the generated configures behave (I see later in your email that you did this), and if you need the traces, just run this in isolation:

$ autoconf path/to/configure.ac --trace=CL_CLISP --
trace=_CL_CLISP_REQUIRE_FEATURE_2

to see where those two macros are used within path/to/configure.ac (but without generating any configure scripts).

Use of uninitialized value $macro in concatenation (.) or string at /usr/bin/automake line 4831, <GEN0> line 40.
automake: ####################
automake: ## Internal Error ##
automake: ####################
automake: unrequested trace `'

Probably fallout from not creating actual configure files, due to the confusion of when to use --trace.

thanks for your explanations!

without the --trace arguments, I get this:

cd modules/berkeley-db && autoconf --include=/home/sds/src/clisp/current/src
configure:1981: error: possibly undefined macro: m4_map_args_w

Then you aren't using autoconf 2.64.

<http://article.gmane.org/gmane.comp.sysutils.autoconf.general/12060>:
"note that I have a fully updated ubuntu, i.e.:
autoconf 2.63-2ubuntu1
automake 1:1.10.2-0ubuntu3.09.04
m4 1.4.11-1"





reply via email to

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