localename: Fix test failure on AIX 7.
commit55e1fc818eed5ce14c76e366685e29b163f23684
authorBruno Haible <bruno@clisp.org>
Tue, 18 Dec 2018 08:49:42 +0000 (18 09:49 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 18 Dec 2018 08:52:01 +0000 (18 09:52 +0100)
treeb745515f0ebfaa02b28f53972da6a093fa9bf7bd
parent97212599b4fa5f78626aa2b272ba9376a54c515e
localename: Fix test failure on AIX 7.

Reported by Assaf Gordon in
<https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.

* m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
(gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
instead of ac_cv_func_uselocale.
* lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
HAVE_USELOCALE.
* lib/localename-table.h: Likewise.
* lib/localename-table.c: Likewise.
* tests/test-localename.c: Likewise.
* doc/posix-functions/uselocale.texi: Mention the AIX problem.
ChangeLog
doc/posix-functions/uselocale.texi
lib/localename-table.c
lib/localename-table.h
lib/localename.c
m4/intl-thread-locale.m4
tests/test-localename.c