]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Fix "make sc_prefer_ac_check_funcs_once" failure.
authorBruno Haible <bruno@clisp.org>
Wed, 7 May 2025 07:05:02 +0000 (09:05 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 May 2025 07:05:41 +0000 (09:05 +0200)
* Makefile (exclude_file_name_regexp--sc_prefer_ac_check_funcs_once):
New variable.
(sc_prefer_ac_check_funcs_once): Use it.

ChangeLog
Makefile

index dab0dc17dff5da5117921bcd121387e825a4176f..1610ccd9eb485218e92a9766fdba3720bdb76bcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-05-07  Bruno Haible  <bruno@clisp.org>
+
+       Fix "make sc_prefer_ac_check_funcs_once" failure.
+       * Makefile (exclude_file_name_regexp--sc_prefer_ac_check_funcs_once):
+       New variable.
+       (sc_prefer_ac_check_funcs_once): Use it.
+
 2025-05-07  Bruno Haible  <bruno@clisp.org>
 
        Fix "make sc_prohibit_leading_TABs" failures.
index 5fcc02510ab8d50b8f30bf57fc36b743ebbc2bb6..06ecc5d7c1f88efd229c12d1c460403f106a7533 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,10 +33,14 @@ check: $(syntax-check-rules)
 
 sc_prefer_ac_check_funcs_once:
        @if test -d .git; then                                          \
-         git grep -w -l AC_CHECK_FUNCS modules                         \
+         git grep -l -w AC_CHECK_FUNCS modules                         \
+           | grep -Ev '$(exclude_file_name_regexp--sc_prefer_ac_check_funcs_once)' \
+           | grep .                                                    \
            && { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS       \
                   in modules/ 1>&2; exit 1; } || :                     \
        else :; fi
+exclude_file_name_regexp--sc_prefer_ac_check_funcs_once = \
+  ^modules/(jit/cache)
 
 sc_prohibit_leading_TABs:
        @if test -d .git; then                                          \