Work around Solaris 10 math.h bug.
authorEric Blake <ebb9@byu.net>
Sat, 12 Apr 2008 13:22:40 +0000 (07:22 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 12 Apr 2008 13:28:35 +0000 (07:28 -0600)
commit833333f7edfb45487d4a2cbae9f5e611c0c542cf
tree571fe560b473cd9ab9c93b81c10d5816aead3553
parentb2cf43d6c45193102d4c90fc82007f15c1e98e47
Work around Solaris 10 math.h bug.

* m4/math_h.m4 (gl_MATH_H): Check for bug.
(gl_MATH_H_DEFAULTS): Set up default.
* modules/math (Makefile.am): Replace new indicators.
* lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
* tests/test-math.c (main): Test this.
* m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
* doc/posix-headers/math.texi (math.h): Mention bug.
Reported by Nelson H. F. Beebe and Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-headers/math.texi
lib/math.in.h
m4/math_h.m4
m4/strtod.m4
modules/math
tests/test-math.c