diff options
Diffstat (limited to 'm4/log1p.m4')
-rw-r--r-- | m4/log1p.m4 | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/m4/log1p.m4 b/m4/log1p.m4 index f55ac549e..a1cf0f0de 100644 --- a/m4/log1p.m4 +++ b/m4/log1p.m4 @@ -1,5 +1,5 @@ -# log1p.m4 serial 3 -dnl Copyright (C) 2012-2017 Free Software Foundation, Inc. +# log1p.m4 serial 8 +dnl Copyright (C) 2012-2021 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 with or without modifications, as long as this notice is preserved. @@ -41,7 +41,7 @@ AC_DEFUN([gl_FUNC_LOG1P], static double dummy (double x) { return 0; } int main (int argc, char *argv[]) { - double (*my_log1p) (double) = argc ? log1p : dummy; + double (* volatile my_log1p) (double) = argc ? log1p : dummy; /* This test fails on AIX, HP-UX 11. */ double y = my_log1p (minus_zerod); if (!(y == 0.0) || (signbitd (minus_zerod) && !signbitd (y))) @@ -52,10 +52,14 @@ int main (int argc, char *argv[]) [gl_cv_func_log1p_ieee=yes], [gl_cv_func_log1p_ieee=no], [case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_log1p_ieee="guessing yes" ;; - # If we don't know, assume the worst. - *) gl_cv_func_log1p_ieee="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_log1p_ieee="guessing yes" ;; + # Guess yes on musl systems. + *-musl*) gl_cv_func_log1p_ieee="guessing yes" ;; + # Guess yes on native Windows. + mingw*) gl_cv_func_log1p_ieee="guessing yes" ;; + # If we don't know, obey --enable-cross-guesses. + *) gl_cv_func_log1p_ieee="$gl_cross_guess_normal" ;; esac ]) LIBS="$save_LIBS" |