From a5ca1651a1b564b59a104236d9552d9ae75faf3e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 20 Dec 2009 17:41:12 +0100 Subject: [PATCH] build: add a syntax-check * cfg.mk (sc_prohibit_obsolete_HAVE_HEADER_H): New rule. --- cfg.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cfg.mk b/cfg.mk index d6197e8..ce02851 100644 --- 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) -- 2.47.2