bug-autoconf
[Top][All Lists]
Advanced

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

Re: Creating autotest testsuite gets stuck if package.m4.in contains unr


From: Eric Blake
Subject: Re: Creating autotest testsuite gets stuck if package.m4.in contains unresolved substitutions
Date: Sat, 06 Feb 2010 07:07:21 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Niels Lohmann on 2/5/2010 3:50 AM:
> This all works, but if (by accident), a check in configure.ac is deleted, say 
> than one for WGET, then tests/package.m4 ends up with an unresolved 
> substitution:
> 
>       m4_define([WGET], address@hidden@])

Yes, any attempt to expand WGET in m4 at that point results in an infinite
m4 loop; there's nothing autom4te can do about user input error.

WGET -> @WGET@ -> @@WGET@@ -> @@@WGET@@@ ...

You can avoid infinite recursion with more quoting:

m4_define([WGET], address@hidden@]])

to make it obvious that the expansion of WGET should not undergo further
expansion.  But Ralf had a good point - why are you even using m4
substitution into @@ variables in the first place?

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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