1 # localename.m4 serial 7
2 dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_LOCALENAME],
9 AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
10 AC_REQUIRE([gl_LOCALE_T])
11 AC_REQUIRE([gt_LC_MESSAGES])
12 AC_REQUIRE([gt_INTL_THREAD_LOCALE_NAME])
13 AC_REQUIRE([gt_INTL_MACOSX])
14 AC_CHECK_HEADERS_ONCE([langinfo.h])
15 if test $HAVE_LOCALE_T = 1; then
16 AC_CHECK_FUNCS_ONCE([newlocale duplocale freelocale])
17 gl_func_newlocale="$ac_cv_func_newlocale"
18 gl_func_duplocale="$ac_cv_func_duplocale"
19 gl_func_freelocale="$ac_cv_func_freelocale"
21 dnl In 2019, some versions of z/OS lack the locale_t type and have broken
22 dnl newlocale, duplocale, freelocale functions.
27 if test $gl_func_newlocale != yes; then
30 if test $gl_func_duplocale != yes; then
33 if test $gl_func_freelocale != yes; then
36 if test $gt_nameless_locales = yes; then