ruby-changes:6325
From: akr <ko1@a...>
Date: Thu, 3 Jul 2008 16:22:26 +0900 (JST)
Subject: [ruby-changes:6325] Ruby:r17841 (ruby_1_8, trunk): * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
akr 2008-07-03 16:22:06 +0900 (Thu, 03 Jul 2008)
New Revision: 17841
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/configure.in
trunk/ChangeLog
trunk/configure.in
Log:
* configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
on IA64 is broken. erfc(10000.0) aborts.
use missing/erf.c instead.
http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17841
Index: configure.in
===================================================================
--- configure.in (revision 17840)
+++ configure.in (revision 17841)
@@ -700,6 +700,27 @@
;;
esac
AC_FUNC_MEMCMP
+
+# http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+# Debian GNU/Linux Etch's libc6.1 2.3.6.ds1-13etch5 has this problem.
+# Debian GNU/Linux Lenny's libc6.1 2.7-10 has no problem.
+AC_CACHE_CHECK(for broken erfc of glibc comes with Debian GNU/Linux Etch on IA64, rb_broken_glibc_ia64_erfc,
+ [AC_TRY_RUN([
+#include <math.h>
+int
+main()
+{
+ erfc(10000.0);
+ return 0;
+}
+],
+ rb_broken_glibc_ia64_erfc=no,
+ rb_broken_glibc_ia64_erfc=yes,
+ rb_broken_glibc_ia64_erfc=no)])
+case $rb_broken_glibc_ia64_erfc in
+ yes) ac_cv_func_erf=no;;
+esac
+
AC_REPLACE_FUNCS(dup2 memmove strerror strftime\
strchr strstr crypt flock vsnprintf\
isnan finite isinf hypot acosh erf tgamma lgamma_r cbrt \
Index: ChangeLog
===================================================================
--- ChangeLog (revision 17840)
+++ ChangeLog (revision 17841)
@@ -1,3 +1,10 @@
+Thu Jul 3 16:08:36 2008 Tanaka Akira <akr@f...>
+
+ * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
+ on IA64 is broken. erfc(10000.0) aborts.
+ use missing/erf.c instead.
+ http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+
Thu Jul 3 12:49:39 2008 Yukihiro Matsumoto <matz@r...>
* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
Index: ruby_1_8/configure.in
===================================================================
--- ruby_1_8/configure.in (revision 17840)
+++ ruby_1_8/configure.in (revision 17841)
@@ -599,6 +599,27 @@
AC_FUNC_MEMCMP
AC_FUNC_FSEEKO
AC_CHECK_FUNCS(ftello)
+
+# http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+# Debian GNU/Linux Etch's libc6.1 2.3.6.ds1-13etch5 has this problem.
+# Debian GNU/Linux Lenny's libc6.1 2.7-10 has no problem.
+AC_CACHE_CHECK(for broken erfc of glibc comes with Debian GNU/Linux Etch on IA64, rb_broken_glibc_ia64_erfc,
+ [AC_TRY_RUN([
+#include <math.h>
+int
+main()
+{
+ erfc(10000.0);
+ return 0;
+}
+],
+ rb_broken_glibc_ia64_erfc=no,
+ rb_broken_glibc_ia64_erfc=yes,
+ rb_broken_glibc_ia64_erfc=no)])
+case $rb_broken_glibc_ia64_erfc in
+ yes) ac_cv_func_erf=no;;
+esac
+
AC_REPLACE_FUNCS(dup2 memmove strcasecmp strncasecmp strerror strftime\
strchr strstr strtoul crypt flock vsnprintf\
isnan finite isinf hypot acosh erf)
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 17840)
+++ ruby_1_8/ChangeLog (revision 17841)
@@ -1,3 +1,10 @@
+Thu Jul 3 16:08:36 2008 Tanaka Akira <akr@f...>
+
+ * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
+ on IA64 is broken. erfc(10000.0) aborts.
+ use missing/erf.c instead.
+ http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+
Thu Jul 3 12:49:39 2008 Yukihiro Matsumoto <matz@r...>
* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/