bug-autoconf
[Top][All Lists]
Advanced

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

Re: autoconf-2.68: no AC_LANG_SOURCE call detected in body


From: Eric Blake
Subject: Re: autoconf-2.68: no AC_LANG_SOURCE call detected in body
Date: Thu, 23 Sep 2010 07:54:20 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.3

On 09/23/2010 07:52 AM, Eric Blake wrote:

[hit send too soon]

On 09/23/2010 06:56 AM, Ralf Corsepius wrote:
Hi,

I am facing a new issue/regression with autoconf-2.68:

That is not a regression, but a feature. Reread NEWS:

** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
   AC_RUN_IFELSE now warn if the first argument failed to use
   AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
   contents.  A new macro AC_LANG_DEFINES_PROVIDED exists if you have
   a compelling reason why you cannot use AC_LANG_SOURCE but must
   avoid the warning.


AC_COMPILE_IFELSE([
#ifndef FOO
choke me
#endif
])

You should have used:

AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#ifndef FOO
choke me
#endif
])

Needs another ]), to match the fact that there is an added ([ from the added call to AC_LANG_SOURCE.

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



reply via email to

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