A small bug fix: The macro gl_FUNC_GETLOCALENAME_L_UNSAFE may set the value of HAVE_GETLOCALENAME_L and REPLACE_GETLOCALENAME_L. Therefore we need to make sure that it does not get invoked/expanded before gl_LOCALE_H_DEFAULTS.
2025-07-15 Bruno Haible <br...@clisp.org> getlocalename_l-unsafe: Make configuration more robust. * m4/getlocalename_l.m4 (gl_FUNC_GETLOCALENAME_L_UNSAFE): Require gl_LOCALE_H_DEFAULTS. diff --git a/m4/getlocalename_l.m4 b/m4/getlocalename_l.m4 index 6c9d766ffa..629e510bef 100644 --- a/m4/getlocalename_l.m4 +++ b/m4/getlocalename_l.m4 @@ -1,5 +1,5 @@ # getlocalename_l.m4 -# serial 3 +# serial 4 dnl Copyright (C) 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, @@ -24,6 +24,7 @@ AC_DEFUN([gl_PREREQ_GETLOCALENAME_L_SIMPLE] AC_DEFUN_ONCE([gl_FUNC_GETLOCALENAME_L_UNSAFE], [ + AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SETLOCALE_NULL]) AC_CHECK_FUNCS_ONCE([getlocalename_l]) if test $ac_cv_func_getlocalename_l = yes; then