+2020-01-10 Bruno Haible <bruno@clisp.org>
+
+ Fix major regression from 2020-01-04.
+ Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
+ * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
+ AC_DEFUN_ONCE.
+ (AC_CHECK_DECL): Invoke, not require, it.
+
2020-01-10 Bruno Haible <bruno@clisp.org>
c32snrtombs: Add tests.
-# 00gnulib.m4 serial 4
+# 00gnulib.m4 serial 5
dnl Copyright (C) 2009-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_compiler_clang=no])
])
])
-AC_DEFUN([gl_COMPILER_PREPARE_CHECK_DECL],
+AC_DEFUN_ONCE([gl_COMPILER_PREPARE_CHECK_DECL],
[
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([gl_COMPILER_CLANG])
m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_save_ac_compile"
])
])
-dnl Redefine AC_CHECK_DECL so that it starts with
-dnl AC_REQUIRE([gl_COMPILER_PREPARE_CHECK_DECL]).
+dnl Redefine AC_CHECK_DECL so that it starts with an invocation of
+dnl gl_COMPILER_PREPARE_CHECK_DECL.
m4_define([AC_CHECK_DECL],
- [AC_REQUIRE([gl_COMPILER_PREPARE_CHECK_DECL])]m4_defn([AC_CHECK_DECL]))
+ [gl_COMPILER_PREPARE_CHECK_DECL dnl
+]m4_defn([AC_CHECK_DECL]))
# gl_00GNULIB
# -----------