Import warnings.m4 from gnulib
* m4/warnings.m4: Replace with warnings.m4 from gnulib.
* configure.ac: Use gl_WARN_ADD from new warnings.m4.
* Makefile.am (AM_CFLAGS): Update for new warnings.m4.
diff --git a/configure.ac b/configure.ac
index 96a9a66..3a392aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,15 +171,13 @@
fi
fi
-AC_WARNFLAGS
+gl_WARN_ADD([-Wall])
if test "x$opsys" = "xsunos4"
then
- if test -n "$GCC"
- then
- # SunOS 4.x header files don't declare int functions.
- WARNFLAGS="$WARNFLAGS -Wno-implicit"
- fi
+ # SunOS 4.x header files don't declare int functions.
+ gl_WARN_ADD([-Wno-implicit])
fi
+AC_SUBST([WARN_CFLAGS])
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL