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.
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.
dnl Persuade glibc <math.h> to declare ceilf().
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
dnl Test whether ceilf() is declared.
dnl Persuade glibc <math.h> to declare ceilf().
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
dnl Test whether ceilf() is declared.
- AC_CHECK_DECLS([ceilf], , , [#include <math.h>])
+ AC_CHECK_DECLS([ceilf], , , [[#include <math.h>]])
- if (signbitf (minus_zerof) && !signbitf (ceilf (minus_zerof)))
- return 1;
- return 0;
+ if (signbitf (minus_zerof) && !signbitf (my_ceilf (minus_zerof)))
+ result |= 1;
+ /* Test whether ceilf (-0.3f) is -0.0f. */
+ if (signbitf (-0.3f) && !signbitf (my_ceilf (-0.3f)))
+ result |= 2;
+ return result;