From b5f087b157b260a9258c32ecfe9b393971469750 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 12 Jun 2017 01:57:02 +0200 Subject: [PATCH] float: Fix 'float' and 'isinf' failures on DragonFly BSD. * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly. --- ChangeLog | 1 + m4/fmal.m4 | 4 ++-- m4/frexpl.m4 | 4 ++-- m4/logbl.m4 | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1cd8cbf44e..4871025204 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ float: Fix 'float' and 'isinf' failures on DragonFly BSD. * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD. * lib/float.in.h: Likewise. + * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly. 2017-06-11 Bruno Haible diff --git a/m4/fmal.m4 b/m4/fmal.m4 index a8e43bdc2b..eb8dc1a062 100644 --- a/m4/fmal.m4 +++ b/m4/fmal.m4 @@ -1,4 +1,4 @@ -# fmal.m4 serial 4 +# fmal.m4 serial 5 dnl Copyright (C) 2011-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -88,7 +88,7 @@ AC_DEFUN([gl_FUNC_FMAL_WORKS], # undef LDBL_MAX_EXP # define LDBL_MAX_EXP 16384 #endif -#if defined __i386__ && defined __FreeBSD__ +#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) # undef LDBL_MANT_DIG # define LDBL_MANT_DIG 64 # undef LDBL_MIN_EXP diff --git a/m4/frexpl.m4 b/m4/frexpl.m4 index e6a1bed1f7..717aec0160 100644 --- a/m4/frexpl.m4 +++ b/m4/frexpl.m4 @@ -1,4 +1,4 @@ -# frexpl.m4 serial 20 +# frexpl.m4 serial 21 dnl Copyright (C) 2007-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -131,7 +131,7 @@ AC_DEFUN([gl_FUNC_FREXPL_WORKS], # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) #endif -#if defined __i386__ && defined __FreeBSD__ +#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) #endif diff --git a/m4/logbl.m4 b/m4/logbl.m4 index 553e5bd4e4..db0a36d5ed 100644 --- a/m4/logbl.m4 +++ b/m4/logbl.m4 @@ -1,4 +1,4 @@ -# logbl.m4 serial 1 +# logbl.m4 serial 2 dnl Copyright (C) 2012-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -71,7 +71,7 @@ AC_DEFUN([gl_FUNC_LOGBL_WORKS], # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) #endif -#if defined __i386__ && defined __FreeBSD__ +#if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) #endif -- 2.39.5