New macro for testing whether the compiler supports a given
authorKen Raeburn <raeburn@mit.edu>
Fri, 22 Aug 2008 15:56:32 +0000 (15:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 22 Aug 2008 15:56:32 +0000 (15:56 +0000)
commita601b792b81eda6a9d3e4158e147a2e9524c13c7
tree8b877862aa505d607ccdc1894a5a744ff0438258
parent0348462f117ae43bdb958483e2f6c8a908fcc310
New macro for testing whether the compiler supports a given
command-line flag or not, and adding it to CFLAGS only if supported.
Use it for GCC flag -Wno-format-zero-length, which we were testing for
before, and for some additional flags: -Woverflow -Wstrict-overflow
-Wmissing-format-attribute -Werror=declaration-after-statement
-Wdeclaration-after-statement -Werror=variadic-macros
-Wvariadic-macros.  (The last few are because we've had some code
contributions that assumed full C99 support, and our baseline is
currently C89+, so if possible we want certain newer constructs
flagged as errors.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20685 dc483132-0cff-0310-8789-dd5450dbe970
src/aclocal.m4