+2023-01-19 Bruno Haible <bruno@clisp.org>
+
+ Fix warnings for functions introduced in Android API level 18.
+ * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test for getdelim using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+ * m4/getline.m4 (gl_FUNC_GETLINE): Test for getline using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNC.
+ * m4/log2.m4 (gl_FUNC_LOG2): Test for log2 using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
+ * m4/log2f.m4 (gl_FUNC_LOG2F): Test for log2f using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
+ * m4/log2l.m4 (gl_FUNC_LOG2L): Test for log2l using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
+
2023-01-19 Bruno Haible <bruno@clisp.org>
Fix warnings for functions introduced in Android API level 16 or 17.
-# getdelim.m4 serial 16
+# getdelim.m4 serial 17
dnl Copyright (C) 2005-2007, 2009-2023 Free Software Foundation, Inc.
dnl
AC_CHECK_DECLS_ONCE([getdelim])
- AC_CHECK_FUNCS_ONCE([getdelim])
+ gl_CHECK_FUNCS_ANDROID([getdelim], [[#include <stdio.h>]])
if test $ac_cv_func_getdelim = yes; then
HAVE_GETDELIM=1
dnl Found it in some library. Verify that it works.
-# getline.m4 serial 30
+# getline.m4 serial 31
dnl Copyright (C) 1998-2003, 2005-2007, 2009-2023 Free Software Foundation,
dnl Inc.
AC_CHECK_DECLS_ONCE([getline])
- gl_getline_needs_run_time_check=no
- AC_CHECK_FUNC([getline],
- [dnl Found it in some library. Verify that it works.
- gl_getline_needs_run_time_check=yes],
- [am_cv_func_working_getline=no])
- if test $gl_getline_needs_run_time_check = yes; then
+ gl_CHECK_FUNCS_ANDROID([getline], [[#include <stdio.h>]])
+ if test $ac_cv_func_getline = yes; then
+ dnl Found it in some library. Verify that it works.
AC_CACHE_CHECK([for working getline function],
[am_cv_func_working_getline],
[echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
])
])
])
+ else
+ am_cv_func_working_getline=no
fi
if test $ac_cv_have_decl_getline = no; then
-# log2.m4 serial 10
+# log2.m4 serial 11
dnl Copyright (C) 2010-2023 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 Test whether log2() exists.
save_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
- AC_CHECK_FUNCS([log2])
+ gl_CHECK_FUNCS_ANDROID([log2], [[#include <math.h>]])
LIBS="$save_LIBS"
if test $ac_cv_func_log2 = yes; then
HAVE_LOG2=1
-# log2f.m4 serial 10
+# log2f.m4 serial 11
dnl Copyright (C) 2010-2023 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 Test whether log2f() exists.
save_LIBS="$LIBS"
LIBS="$LIBS $LOG2F_LIBM"
- AC_CHECK_FUNCS([log2f])
+ gl_CHECK_FUNCS_ANDROID([log2f], [[#include <math.h>]])
LIBS="$save_LIBS"
if test $ac_cv_func_log2f = yes; then
HAVE_LOG2F=1
-# log2l.m4 serial 3
+# log2l.m4 serial 4
dnl Copyright (C) 2010-2023 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 defined in the same library as log2().
save_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
- AC_CHECK_FUNCS([log2l])
+ gl_CHECK_FUNCS_ANDROID([log2l], [[#include <math.h>]])
LIBS="$save_LIBS"
if test $ac_cv_func_log2l = yes; then
LOG2L_LIBM="$LOG2_LIBM"