From b92393eff2274b6c6be19a44a12798c3b93f2bbd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 19 Jan 2023 21:55:35 +0100 Subject: Fix warnings for functions introduced in Android API level 26. * m4/mountlist.m4 (gl_MOUNTLIST): Test for hasmntopt using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS. * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for nl_langinfo using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/strtod.m4 (gl_PREREQ_STRTOD): Test for nl_langinfo using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS. * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Likewise. * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test for catgets using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/utimens.m4 (gl_UTIMENS): Test for lutimes using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test for nl_langinfo_l using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * modules/duplocale-tests (configure.ac): Likewise. * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Update comment. --- modules/duplocale-tests | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/duplocale-tests b/modules/duplocale-tests index 0cb7af4703..77295bb38a 100644 --- a/modules/duplocale-tests +++ b/modules/duplocale-tests @@ -8,8 +8,9 @@ Depends-on: langinfo configure.ac: -AC_CHECK_FUNCS_ONCE([strfmon_l snprintf_l nl_langinfo_l]) +AC_CHECK_FUNCS_ONCE([strfmon_l snprintf_l]) gl_CHECK_FUNCS_ANDROID([duplocale], [[#include ]]) +gl_CHECK_FUNCS_ANDROID([nl_langinfo_l], [[#include ]]) AC_CHECK_HEADERS_ONCE([monetary.h]) gt_FUNC_USELOCALE -- cgit v1.2.1