changeset 29197:527a6a1653ae

Fix frexp on mingw. * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when cross-compiling. * doc/functions/frexp.texi (frexp): Document the bug. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Tue, 04 Dec 2007 08:40:17 -0700
parents 064fae529893
children bc4634ba8935
files ChangeLog doc/functions/frexp.texi m4/frexp.m4
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 04 08:38:22 2007 -0700
+++ b/ChangeLog	Tue Dec 04 08:40:17 2007 -0700
@@ -1,5 +1,10 @@
 2007-12-04  Eric Blake  <ebb9@byu.net>
 
+	Fix frexp on mingw.
+	* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
+	cross-compiling.
+	* doc/functions/frexp.texi (frexp): Document the bug.
+
 	Make cygwin fseeko check more reliable.
 	* m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
 	version numbers, rather than unrelated feature check.
--- a/doc/functions/frexp.texi	Tue Dec 04 08:38:22 2007 -0700
+++ b/doc/functions/frexp.texi	Tue Dec 04 08:40:17 2007 -0700
@@ -13,7 +13,7 @@
 NetBSD 3.0.
 @item
 This function does not work on infinite numbers on some platforms:
-IRIX 6.5.
+IRIX 6.5, mingw.
 @end itemize
 
 Portability problems not fixed by Gnulib:
--- a/m4/frexp.m4	Tue Dec 04 08:38:22 2007 -0700
+++ b/m4/frexp.m4	Tue Dec 04 08:40:17 2007 -0700
@@ -1,4 +1,4 @@
-# frexp.m4 serial 4
+# frexp.m4 serial 5
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -126,6 +126,7 @@
 }], [gl_cv_func_frexp_works=yes], [gl_cv_func_frexp_works=no],
       [case "$host_os" in
          netbsd* | irix*) gl_cv_func_frexp_works="guessing no";;
+         mingw*)          gl_cv_func_frexp_works="guessing no";;
          *)               gl_cv_func_frexp_works="guessing yes";;
        esac
       ])