1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-02 15:41:25 +03:00

cbrtl-ieee: Work around test failure on IRIX 6.5.

* m4/cbrtl-ieee.m4: New file.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
test whether cbrtl works with a minus zero argument. Replace it if not.
* lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
* modules/math (Makefile.am): Substitute REPLACE_CBRTL.
* modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
(Depends-on): Update conditions.
* modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
* lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
* doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
This commit is contained in:
Bruno Haible
2012-03-01 04:54:18 +01:00
parent 5135f0da23
commit 8aa4d66e12
10 changed files with 118 additions and 12 deletions

View File

@@ -4,9 +4,9 @@
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/cbrtl.html}
Gnulib module: cbrtl
Gnulib module: cbrtl or cbrtl-ieee
Portability problems fixed by Gnulib:
Portability problems fixed by either Gnulib module @code{cbrtl} or @code{cbrtl-ieee}
@itemize
@item
This function is missing on some platforms:
@@ -16,6 +16,14 @@ This function is not declared on some platforms:
IRIX 6.5.
@end itemize
Portability problems fixed by Gnulib module @code{cbrtl-ieee}:
@itemize
@item
This function returns a positive zero for a minus zero argument
on some platforms:
IRIX 6.5.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize