changeset 29346:b7052e0c655b

Fix autoconf test bug introduced on 2008-01-15.
author Andreas Schwab <schwab@suse.de>
date Thu, 31 Jan 2008 00:25:53 +0100
parents 323ccf9484d8
children 49c64d003ba6
files ChangeLog m4/frexpl.m4
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 30 11:58:29 2008 -0800
+++ b/ChangeLog	Thu Jan 31 00:25:53 2008 +0100
@@ -1,3 +1,9 @@
+2008-01-30  Andreas Schwab  <schwab@suse.de>
+            Bruno Haible  <bruno@clisp.org>
+
+	* m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
+	correct definition of LDBL_MIN_EXP.
+
 2008-01-30  Karl Berry  <karl@gnu.org>
 
 	* config/srclist-update: try to preserve x bit on updates.
--- a/m4/frexpl.m4	Wed Jan 30 11:58:29 2008 -0800
+++ b/m4/frexpl.m4	Thu Jan 31 00:25:53 2008 +0100
@@ -1,4 +1,4 @@
-# frexpl.m4 serial 7
+# frexpl.m4 serial 8
 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -106,7 +106,13 @@
   AC_CACHE_CHECK([whether frexpl works], [gl_cv_func_frexpl_works],
     [
       AC_TRY_RUN([
+#include <float.h>
 #include <math.h>
+/* Override the values of <float.h>, like done in float.in.h.  */
+#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
+# undef LDBL_MIN_EXP
+# define LDBL_MIN_EXP    (-16381)
+#endif
 extern long double frexpl (long double, int *);
 int main()
 {