From: Bruno Haible Date: Fri, 30 Jul 2010 19:14:41 +0000 (+0200) Subject: round: Update regarding AIX. X-Git-Tag: v0.1~3990 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=b4e5a5f11bd67ce5435b5ecf43b7fb6a81ba62a0 round: Update regarding AIX. --- diff --git a/ChangeLog b/ChangeLog index be9cd290c..79b353688 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-07-30 Bruno Haible + round: Update regarding AIX. + * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7. + * doc/posix-functions/round.texi: Mention bug on AIX 7.1. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + rename: Update regarding AIX. * doc/posix-functions/rename.texi: Mention bug on AIX 7.1. * m4/rename.m4 (gl_FUNC_RENAME): Update comment. diff --git a/doc/posix-functions/round.texi b/doc/posix-functions/round.texi index a2dde673e..c7378afe9 100644 --- a/doc/posix-functions/round.texi +++ b/doc/posix-functions/round.texi @@ -13,7 +13,7 @@ This function is missing on some platforms: FreeBSD 5.2.1, OpenBSD 3.8, AIX 5.1, IRIX 6.5, OSF/1 4.0, Solaris 9, Interix 3.5. @item This functions returns a wrong result for x = 1/2 - 2^-54 on some platforms: -NetBSD 3.0. +NetBSD 3.0, AIX 7.1. @end itemize Portability problems not fixed by Gnulib: diff --git a/m4/round.m4 b/m4/round.m4 index e11f51830..1d1b91c1a 100644 --- a/m4/round.m4 +++ b/m4/round.m4 @@ -1,4 +1,4 @@ -# round.m4 serial 8 +# round.m4 serial 9 dnl Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -40,8 +40,8 @@ int main() exit (x < 0.5 && round (x) != 0.0); }]])], [gl_cv_func_round_works=yes], [gl_cv_func_round_works=no], [case "$host_os" in - netbsd*) gl_cv_func_round_works="guessing no";; - *) gl_cv_func_round_works="guessing yes";; + netbsd* | aix*) gl_cv_func_round_works="guessing no";; + *) gl_cv_func_round_works="guessing yes";; esac ]) LIBS="$save_LIBS"