]> granicus.if.org Git - file/commitdiff
flip the polarity of the gcc test.
authorChristos Zoulas <christos@zoulas.com>
Mon, 18 May 2009 18:31:02 +0000 (18:31 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 18 May 2009 18:31:02 +0000 (18:31 +0000)
configure.ac

index 5fc7b3cfd954420279a5f080a3b6d7291bf1d753..9da571d880fe538426acaad3ef2e28f301dbac3c 100644 (file)
@@ -130,15 +130,15 @@ else
        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
 fi], [
-if test "$GCC" = no; then
-   WARNINGS=
-   AC_MSG_RESULT(no)
-else
+if test "$GCC" = yes; then
    AC_MSG_RESULT(yes)
    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
+else
+   WARNINGS=
+   AC_MSG_RESULT(no)
 fi])
 
 dnl Checks for functions