[Top][All Lists]

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

$GXX = yes when using non-GCC compiler

From: Peter Johansson
Subject: $GXX = yes when using non-GCC compiler
Date: Thu, 1 Dec 2011 17:54:00 -0500

Hello autoconfers,

In the section where manual describes AC_PROG_CXX


it claims that shell variable GXX is set to ‘yes’ if using GNU C++ compiler.

This seems to be inaccurate because when I build with, e.g., Intel compiler
I get GXX set to yes as well. Looking into the code  of macro
_AC_LANG_COMPILER_GNU that sets this variable it looks like it relies on
whether PP macro __GNUC__ is defined or not. It turns out that this is not
a good way to determine whether GCC is used because many compilers defined
that macro:


Obviously it would be good if CXX behaves as documented but before that can
be fixed I think the manual perhaps should be updated.

Thank you,


reply via email to

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