configure: Don't try to detect clang by $CC
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 22 May 2017 20:59:32 +0000 (23:59 +0300)
committerHenrik Gramner <henrik@gramner.com>
Tue, 23 May 2017 14:57:45 +0000 (16:57 +0200)
Only check if option -Werror=unknown-warning-option is supported before adding it

configure

index 52871c4..f7b14d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -589,7 +589,7 @@ else
     fi
 fi
 
-if [[ "$cc_base" = clang* ]]; then
+if [ $compiler = GNU ]; then
     if cc_check '' -Werror=unknown-warning-option ; then
         CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option"
     fi