]> git.pond.sub.org Git - empserver/blobdiff - configure.ac
configure: Test GCC-specific compiler flags only when using GCC
[empserver] / configure.ac
index 1885981a7ffb862652d8b3fa33e792b2448e5fae..933bc1ee4b6a5569c688bb1196f74c2234d664d4 100644 (file)
@@ -91,6 +91,9 @@ MY_WITH_READLINE
 
 ### Checks for typedefs, structures, and compiler characteristics
 
+if test "$GCC"
+then
+
 # Enable useful warnings
 # Some of them are commented out because the code needs cleanup first
 # Clang needs to be tested with -Werror=unknown-warning-option
@@ -168,6 +171,8 @@ main(int argc, char *argv[])
 }
     ]])])
 
+fi # $GCC
+
 
 ### Checks for library functions