]> git.gag.com Git - debian/gzip/commitdiff
build: add a syntax-check
authorJim Meyering <meyering@redhat.com>
Sun, 20 Dec 2009 16:41:12 +0000 (17:41 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 30 Dec 2009 16:33:55 +0000 (17:33 +0100)
* cfg.mk (sc_prohibit_obsolete_HAVE_HEADER_H): New rule.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index d6197e85a7a0f5658b85f774803a261212fc7cd9..ce02851cbf86ceb27897e8f93ad6e6d4052c06c2 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -41,3 +41,10 @@ bootstrap-tools = autoconf,automake,gnulib
 export VERBOSE = yes
 
 old_NEWS_hash = 22b19691660f1870cec5f64b2c0e4641
+
+sc_obs_header_regex = \
+  \<(STDC_HEADERS|HAVE_(LIMITS|STRING|UNISTD|STDLIB)_H)\>
+sc_prohibit_obsolete_HAVE_HEADER_H:
+       @re='^[  ]*#[    ]*(el)?if.*$(sc_obs_header_regex)' \
+       msg='remove the above obsolete #if...HAVE_HEADER_H test(s)' \
+         $(_prohibit_regexp)