configure.ac (ACX_PROG_CC_WARNING_OPTS): add -Wmissing-format-attribute.
[gcc.git] / libcpp / configure.ac
index fe52964aae990ef763ca2e032cc0a2461ed4f4d6..9a000bd04cb4aa83d4b33780d9ed8abc92a7a507 100644 (file)
@@ -22,13 +22,18 @@ AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
 # See config/warnings.m4 for details.
 
 ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
-                         -Wmissing-prototypes -Wold-style-definition])
+                         -Wmissing-prototypes -Wold-style-definition \
+                         -Wmissing-format-attribute])
 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
 
 # Only enable with --enable-werror-always until existing warnings are
 # corrected.
 ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
 
+# Dependency checking.
+ZW_CREATE_DEPDIR
+ZW_PROG_COMPILER_DEPENDENCIES([CC])
+
 # Checks for header files.
 AC_HEADER_TIME
 ACX_HEADER_STRING