summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-10-13 09:15:52 +0200
committerJim Meyering <meyering@redhat.com>2009-10-13 09:15:52 +0200
commit0f24cad045453ba041791cadec388080a798a285 (patch)
tree9f63078b60fd66d845a0383566926a7e4a4a8d11 /Makefile
parent420f3dbbb7343cb76a0c44b7c15b19dbe4aaeaaf (diff)
downloadgnulib-0f24cad045453ba041791cadec388080a798a285.tar.gz
use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
* modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS. * modules/pipe-filter-ii: Likewise. * modules/sys_socket-tests: Likewise. * modules/tsearch-tests: Likewise. * Makefile (sc_prefer_ac_check_funcs_once): New rule. (check): Depend on it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index acdb23d2f9..c178205a44 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,12 @@ info html dvi pdf:
cd doc && $(MAKE) $@ && $(MAKE) mostlyclean
# Perform some platform independent checks on the gnulib code.
-check:
+check: sc_prefer_ac_check_funcs_once
+
+sc_prefer_ac_check_funcs_once:
+ git grep -w -l AC_CHECK_FUNCS modules && \
+ { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/ 1>&2; \
+ exit 1; } || :
# Regenerate some files that are stored in the repository.
regen: MODULES.html