[Top][All Lists]

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

Re: ac 2.68 - AC_LANG_SOURCE

From: Eric Blake
Subject: Re: ac 2.68 - AC_LANG_SOURCE
Date: Mon, 04 Apr 2011 09:53:43 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 04/02/2011 03:11 PM, Ralf Wildenhues wrote:
> Hi Jan,
> * Jan Engelhardt wrote on Sat, Apr 02, 2011 at 08:25:49PM CEST:
>> AC_LINK_IFELSE(AC_LANG_SOURCE([int main(void) { return 0; }]))
>> Adding [ ] around AC_LANG_SOURCE would fix it, but I don't see this 
>> extra quoting being normally required.
> It is required, your assumption is not right.

In particular, if AC_LANG_SOURCE produces any commas, an underquoted
version would end up passing multiple arguments to AC_LINK_IFELSE, where
the quoted version would be a single argument, and the correct behavior
requires a single argument.  And while the current body of
AC_LANG_SOURCE doesn't produce any commas unless its argument also had
commas, you can't rely on that behavior in the future.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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