diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-03 07:22:06 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-03 07:22:06 +0000 |
| commit | 0f67efee0e088862fd2bdedafd1c35fec109ada7 (patch) | |
| tree | c21a37d0f63bf0c755dee9f7cd602e1988106000 | |
| parent | d5a5a3b73ac260f16c7c2785d5f2ea70ab17c241 (diff) | |
* 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
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | configure.in | 21 |
2 files changed, 28 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu Jul 3 16:08:36 2008 Tanaka Akira <akr@fsij.org> + + * 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@ruby-lang.org> * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of diff --git a/configure.in b/configure.in index 0e51d8eda9..dea1fcc2a0 100644 --- a/configure.in +++ b/configure.in @@ -599,6 +599,27 @@ esac 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) |
