From: Arran Cudbard-Bell Date: Wed, 13 Sep 2017 07:52:05 +0000 (+0700) Subject: Ugh clang defines __GNUC__ too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca722249245bc4f8407bb35bef9a37794b374db3;p=thirdparty%2Ffreeradius-server.git Ugh clang defines __GNUC__ too --- diff --git a/configure b/configure index 13537f462aa..1bc235e8aef 100755 --- a/configure +++ b/configure @@ -4545,7 +4545,7 @@ main () * gcc will happily accept -Wno-unknown-warning-option * only emitting an error about it, if an error ocurrs in the source file. */ - #ifdef __GNUC__ + #if defined(__GNUC__) && !defined(__clang__) gcc sucks #endif diff --git a/m4/ax_cc.m4 b/m4/ax_cc.m4 index ffe83f44a05..0f01a6262d5 100644 --- a/m4/ax_cc.m4 +++ b/m4/ax_cc.m4 @@ -113,7 +113,7 @@ AC_DEFUN([AX_CC_NO_UNKNOWN_WARNING_OPTION_FLAG],[ * gcc will happily accept -Wno-unknown-warning-option * only emitting an error about it, if an error ocurrs in the source file. */ - #ifdef __GNUC__ + #if defined(__GNUC__) && !defined(__clang__) gcc sucks #endif