[Top][All Lists]

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

Re: Bug#578923: [autoconf] Warning if testing for declaration with names

From: Ralf Wildenhues
Subject: Re: Bug#578923: [autoconf] Warning if testing for declaration with namespace (std::setlocale)
Date: Sun, 25 Apr 2010 13:34:15 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

tags +upstream

Hello Jens,

this is clearly an upstream bug.  Adding bug-autoconf.

* Jens Seidel wrote on Fri, Apr 23, 2010 at 05:30:55PM CEST:
> AC_CHECK_DECL(std::setlocale, [AC_DEFINE([HAVE_SETLOCALE], [], [Define if
> setlocale is available in clocale])], , [#include <clocale>])
> results in the warning
> conftest.cpp:37:12: warning: extra tokens at end of #ifndef directive
> in config.log.
> The corresponding code is:
> #include <clocale>
> int
> main ()
> {
> #ifndef std::setlocale
>   (void) std::setlocale;
> #endif
>   ;
>   return 0;
> }
> The problem is "#ifndef std::setlocale" where ":" is no proper macro
> character. In this case the ifndef can be ommitted.

Yep.  This is another problem with the AC_CHECK_DECL* macros and C++
sources.  There is a pending patch for another issue in this area,
but it does not address the above.

It would probably be sufficient to just not use the #ifndef if the name
contained characters not suitable for a CPP macro.

Cheers, and thanks for the bug report,

reply via email to

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