Re: ac 2.68 - AC_LANG_SOURCE

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

 



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   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux