Dealing with compilers that pretend to be GCC
Paul Eggert
eggert@cs.ucla.edu
Thu Jan 19 16:51:00 GMT 2012
On 01/19/12 06:24, Ludovic Courtès wrote:
> I donât see what can be done on âourâ side (perhaps Autoconfâs feature
> test could be strengthened, but how?)
Which feature test would that be?
I certainly understand the problem, and have run into issues where
clang fools 'configure' into thinking a GCC feature is present when
it isn't, but testing whether a compiler is GCC is not really the
Autoconf Way.
A 'configure' script is supposed to check for behavior, not identity.
If the compiler supports the features needed, then generally speaking
a 'configure' script shouldn't care whether the compiler is truly GCC.
More information about the Gcc
mailing list