autoconf
[Top][All Lists]
Advanced

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

Re: wacky warning in 2.68...


From: Russ Allbery
Subject: Re: wacky warning in 2.68...
Date: Wed, 18 May 2011 00:14:17 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Miles Bader <address@hidden> writes:

> Recently I've started getting odd warnings from autoconf, and I'm not
> sure how to shut them up... e.g., from the following "configure.ac"
> file:

[...]

>        AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [opt_ok=yes], [opt_ok=no])

[...]

> I get the following warnings from running "autoconf":

>    configure.ac:24: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call 
> detected in body
>    ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
>    ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
>    ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
>    configure.ac:7: BARF_CHECK_CXX_FLAG is expanded from...
>    configure.ac:24: the top level

> AFAICS, I _am_ using AC_LANG_SOURCE, so ... I dunno why it's
> complaining...

You're missing a level of quoting.  That should be:

    AC_COMPILE_IFELSE([AC_LANG_SOURCE([int x;])], [opt_ok=yes], [opt_ok=no])

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>



reply via email to

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