From: Bruno Haible Date: Tue, 3 Feb 2026 00:30:28 +0000 (+0100) Subject: isfinite-no-c++: Avoid unnecessary override of isfinite(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8839fff60a53a4f78681fbbcb5da0010a222186b;p=thirdparty%2Fgnulib.git isfinite-no-c++: Avoid unnecessary override of isfinite(). * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Link the test program with -lm if necessary. --- diff --git a/ChangeLog b/ChangeLog index 6acf890d4d..cb72d4f12e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-02-02 Bruno Haible + + isfinite-no-c++: Avoid unnecessary override of isfinite(). + * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Link the test program with -lm if + necessary. + 2026-01-29 Bruno Haible gettext: Partially update to gettext 1.0. diff --git a/m4/isfinite.m4 b/m4/isfinite.m4 index 44d97aa3f0..6515b648b6 100644 --- a/m4/isfinite.m4 +++ b/m4/isfinite.m4 @@ -1,5 +1,5 @@ # isfinite.m4 -# serial 23 +# serial 24 dnl Copyright (C) 2007-2026 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -53,6 +53,8 @@ AC_DEFUN([gl_ISFINITEL_WORKS], AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether isfinite(long double) works], [gl_cv_func_isfinitel_works], [ + saved_LIBS="$LIBS" + LIBS="$LIBS $ISFINITE_LIBM" AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -176,5 +178,6 @@ int main () *) gl_cv_func_isfinitel_works="guessing yes" ;; esac ]) + LIBS="$saved_LIBS" ]) ])