AC_CHECK_DECL, AC_CHECK_DECLS: port to the Clang compiler
commit82ef7805faffa151e724aa76c245ec590d174580
authorNoah Misch <noah@cs.caltech.edu>
Thu, 14 May 2015 01:11:47 +0000 (13 21:11 -0400)
committerNoah Misch <noah@cs.caltech.edu>
Thu, 14 May 2015 01:11:47 +0000 (13 21:11 -0400)
tree9b1b38555e5517f3d29a75a5e97eec43fbbc0c5b
parentd2f0ec870814233f21d9f3404ef60b8c65b47cad
AC_CHECK_DECL, AC_CHECK_DECLS: port to the Clang compiler

* lib/autoconf/general.m4 (_AC_UNDECLARED_WARNING): New macro.
(_AC_CHECK_DECL_BODY): Call it once per language; treat warnings as
errors when its verdict indicates that.
* tests/semantics.at (AC_CHECK_DECLS): Add a macro call that relies on
the new semantics.  Avoid -Wmissing-variable-declarations warnings.
* doc/autoconf.texi (Generic Declarations): Document the implications.
* NEWS: Mention this change.
NEWS
doc/autoconf.texi
lib/autoconf/general.m4
tests/semantics.at