bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken frexpl test


From: Bruno Haible
Subject: Re: Broken frexpl test
Date: Thu, 31 Jan 2008 00:29:07 +0100
User-agent: KMail/1.5.4

Andreas Schwab wrote:
> The frexpl test always fails because it uses LDBL_MIN_EXP without
> including <float.h>.

Oops, thank you for noticing this!

> 2008-01-30  Andreas Schwab  <address@hidden>
> 
>       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h>.

I'm applying this. On those platforms where LDBL_MIN_EXP has a wrong value,
let's use the fixed value.

Thanks!


2008-01-30  Andreas Schwab  <address@hidden>
            Bruno Haible  <address@hidden>

        * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
        correct definition of LDBL_MIN_EXP.

*** m4/frexpl.m4.orig   2008-01-31 00:24:22.000000000 +0100
--- m4/frexpl.m4        2008-01-31 00:22:22.000000000 +0100
***************
*** 1,4 ****
! # frexpl.m4 serial 7
  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,
--- 1,4 ----
! # 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,112 ****
--- 106,118 ----
    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()
  {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]