From 909873441124b0f80b1427d55d02d8b6b5992890 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 19 Jan 2023 21:55:23 +0100 Subject: 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. --- m4/log2.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/log2.m4') diff --git a/m4/log2.m4 b/m4/log2.m4 index acf092fed1..4e08f48fe8 100644 --- a/m4/log2.m4 +++ b/m4/log2.m4 @@ -1,4 +1,4 @@ -# 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, @@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_LOG2], dnl Test whether log2() exists. save_LIBS="$LIBS" LIBS="$LIBS $LOG2_LIBM" - AC_CHECK_FUNCS([log2]) + gl_CHECK_FUNCS_ANDROID([log2], [[#include ]]) LIBS="$save_LIBS" if test $ac_cv_func_log2 = yes; then HAVE_LOG2=1 -- cgit v1.2.1