autoconf
[Top][All Lists]
Advanced

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

AC_PROG_CC: how to distinguish clnag from gcc?


From: Sébastien Hinderer
Subject: AC_PROG_CC: how to distinguish clnag from gcc?
Date: Fri, 5 Feb 2021 15:42:28 +0100

Dear all,

It seems AC_PROG_CC wrongly believes clang is gcc and that may cause problems
when clang is passed a warning which is only supposrted by gcc, as is
the case e.g. for -Wno-stringop-truncation.

Is there a recommended way to determine for sure from a configure script
whether the detected C compiler is clang or gcc?

Thanks,

Sébastien.



reply via email to

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