maint.mk: new syntax check for HAVE_DECL checks
authorEric Blake <eblake@redhat.com>
Fri, 13 Jul 2012 20:02:05 +0000 (14:02 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 13 Jul 2012 20:31:48 +0000 (14:31 -0600)
commitfabe8a68103e1014e4ad4551046bbd8ad8c5ae3c
treedf8a87ea550670103a799c7efa663344cd41392e
parent70ab74b3b42a82654b16bc75242bf9b96daa9794
maint.mk: new syntax check for HAVE_DECL checks

Based on Karel's report, we might as well enforce a syntax check
to help avoid future problems.
https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html

Exempt a few files that still get picked up in the wild rather
than as a full gnulib module with m4 files.

* top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
* cfg.mk
(exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
Exempt some false positives.
Based on a report by Karel Zak.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
cfg.mk
top/maint.mk