autoconf
[Top][All Lists]
Advanced

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

Re: avoiding undesired macro expansion after AS_TR_CPP


From: Eric Blake
Subject: Re: avoiding undesired macro expansion after AS_TR_CPP
Date: Thu, 03 Jun 2010 15:28:03 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4

On 06/03/2010 03:24 PM, Raphael 'kena' Poss wrote:
> 
> Op 3 jun 2010, om 22:52 heeft Bruno Haible het volgende geschreven:
>>  AM_CONDITIONAL([LIBUNISTRING_]AS_TR_CPP([$1]), [true])
> 
> I'd try 
> 
> AM_CONDITIONAL([LIBUNISTRING_]m4_quote(AS_TR_CPP([$1])), [true])

Nope; Bruno already listed this as failed attempt #2 later in his mail.

Besides, there are very few places where using m4_quote will ever help
you, where adding extra [] in the correct location wouldn't have already
solved it in the first place.  That, and m4_quote can lose leading
whitespace (if you are willing to require newer autoconf,
m4_expand([$1]) is almost always better than m4_quote($1)).  m4_dquote,
on the other hand, is used rather frequently.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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