Creating a testdir for the modules getloadavg getlocalename_l nstrftime I see this warning:
configure.ac:957: warning: AC_REQUIRE: 'gl_FUNC_SETLOCALE_NULL' was expanded before it was required configure.ac:957: https://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required configure.ac:38: gl_INIT is expanded from... configure.ac:957: the top level This patch fixes it. 2025-03-21 Bruno Haible <br...@clisp.org> setlocale-null: Fix autoconf warning. * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Define through AC_DEFUN_ONCE. diff --git a/m4/setlocale_null.m4 b/m4/setlocale_null.m4 index e8f5d7c492..3c8b693ee5 100644 --- a/m4/setlocale_null.m4 +++ b/m4/setlocale_null.m4 @@ -1,12 +1,12 @@ # setlocale_null.m4 -# serial 9 +# serial 10 dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl This file is offered as-is, without any warranty. -AC_DEFUN([gl_FUNC_SETLOCALE_NULL], +AC_DEFUN_ONCE([gl_FUNC_SETLOCALE_NULL], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_PTHREADLIB])