ruby-changes:42642
From: odaira <ko1@a...>
Date: Sat, 23 Apr 2016 00:05:49 +0900 (JST)
Subject: [ruby-changes:42642] odaira:r54716 (trunk): * configure.in: don't use the system-provided round(3) on AIX.
odaira 2016-04-23 01:02:25 +0900 (Sat, 23 Apr 2016) New Revision: 54716 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54716 Log: * configure.in: don't use the system-provided round(3) on AIX. In AIX, round(0.49999999999999994) returns 1.0. Use round() in numeric.c instead. Modified files: trunk/ChangeLog trunk/configure.in Index: ChangeLog =================================================================== --- ChangeLog (revision 54715) +++ ChangeLog (revision 54716) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Apr 23 01:00:03 2016 Rei Odaira <Rei.Odaira@g...> + + * configure.in: don't use the system-provided round(3) on AIX. + In AIX, round(0.49999999999999994) returns 1.0. + Use round() in numeric.c instead. + Fri Apr 22 21:00:44 2016 Tanaka Akira <akr@f...> * test/ruby/test_time_tz.rb: Tests depends on Europe/Moscow removed Index: configure.in =================================================================== --- configure.in (revision 54715) +++ configure.in (revision 54716) @@ -2338,7 +2338,7 @@ AC_CHECK_FUNCS(ppoll) https://github.com/ruby/ruby/blob/trunk/configure.in#L2338 AC_CHECK_FUNCS(pread) AC_CHECK_FUNCS(qsort_r) AC_CHECK_FUNCS(readlink) -AC_CHECK_FUNCS(round) +AS_CASE(["$target_os"],[aix*],[ac_cv_func_round=no],[AC_CHECK_FUNCS(round)]) AC_CHECK_FUNCS(sched_getaffinity) AC_CHECK_FUNCS(seekdir) AC_CHECK_FUNCS(select_large_fdset) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/