diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-11 11:34:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 11:34:47 +0100 |
commit | 75342b53853a898bdd93c7d3da9374115bab6b6d (patch) | |
tree | 0c0af2b796bcdd8ddd42187beb5badb420db8dea /gl/m4/floorf.m4 | |
parent | 6bbe0b7b0f609ecab831dec9be7690842bf0a0fc (diff) | |
parent | 357787868b5201ec3e874e7a225b1c944cbbdb4d (diff) | |
download | monitoring-plugins-75342b53853a898bdd93c7d3da9374115bab6b6d.tar.gz |
Merge branch 'master' into patch-1
Diffstat (limited to 'gl/m4/floorf.m4')
-rw-r--r-- | gl/m4/floorf.m4 | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gl/m4/floorf.m4 b/gl/m4/floorf.m4 index c892ff9c..c49ffa6b 100644 --- a/gl/m4/floorf.m4 +++ b/gl/m4/floorf.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # floorf.m4 serial 13 | 1 | # floorf.m4 serial 18 |
2 | dnl Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007, 2009-2023 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -39,7 +39,7 @@ AC_DEFUN([gl_FUNC_FLOORF], | |||
39 | static float dummy (float f) { return 0; } | 39 | static float dummy (float f) { return 0; } |
40 | int main (int argc, char *argv[]) | 40 | int main (int argc, char *argv[]) |
41 | { | 41 | { |
42 | float (*my_floorf) (float) = argc ? floorf : dummy; | 42 | float (* volatile my_floorf) (float) = argc ? floorf : dummy; |
43 | /* Test whether floorf (-0.0f) is -0.0f. */ | 43 | /* Test whether floorf (-0.0f) is -0.0f. */ |
44 | if (signbitf (minus_zerof) && !signbitf (my_floorf (minus_zerof))) | 44 | if (signbitf (minus_zerof) && !signbitf (my_floorf (minus_zerof))) |
45 | return 1; | 45 | return 1; |
@@ -49,10 +49,14 @@ int main (int argc, char *argv[]) | |||
49 | [gl_cv_func_floorf_ieee=yes], | 49 | [gl_cv_func_floorf_ieee=yes], |
50 | [gl_cv_func_floorf_ieee=no], | 50 | [gl_cv_func_floorf_ieee=no], |
51 | [case "$host_os" in | 51 | [case "$host_os" in |
52 | # Guess yes on glibc systems. | 52 | # Guess yes on glibc systems. |
53 | *-gnu*) gl_cv_func_floorf_ieee="guessing yes" ;; | 53 | *-gnu* | gnu*) gl_cv_func_floorf_ieee="guessing yes" ;; |
54 | # If we don't know, assume the worst. | 54 | # Guess yes on musl systems. |
55 | *) gl_cv_func_floorf_ieee="guessing no" ;; | 55 | *-musl*) gl_cv_func_floorf_ieee="guessing yes" ;; |
56 | # Guess yes on native Windows. | ||
57 | mingw*) gl_cv_func_floorf_ieee="guessing yes" ;; | ||
58 | # If we don't know, obey --enable-cross-guesses. | ||
59 | *) gl_cv_func_floorf_ieee="$gl_cross_guess_normal" ;; | ||
56 | esac | 60 | esac |
57 | ]) | 61 | ]) |
58 | LIBS="$save_LIBS" | 62 | LIBS="$save_LIBS" |