Bug #3579: RHEL5のautoconf-2.59だとruby-1.8.7-p299でautoconfが失敗する
http://redmine.ruby-lang.org/issues/show/3579

起票者: Motohiro KOSAKI
ステータス: Open, 優先度: Normal
担当者: Shyouhei Urabe, カテゴリ: build, Target version: Ruby 1.8.7
ruby -v: 1.8.7-p299

http://pastebin.com/h4g8vDZb

=================================================================
[smbd@dti-vps-srv19 ruby-1.8.7-p299]$ rpm -q autoconf
autoconf-2.59-12
[smbd@dti-vps-srv19 ruby-1.8.7-p299]$ autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[smbd@dti-vps-srv19 ruby-1.8.7-p299]$ autoconf
configure.in:556: error: possibly undefined macro: AS_CASE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:556: error: possibly undefined macro: m4_bmatch
configure.in:556: error: possibly undefined macro: AS_TR_SH
configure.in:557: error: possibly undefined macro: m4_if
=================================================================

原因は
・RHEL5のautoconfは2.59
・AS_CASEはautoconf 2.60以降でサポート
・1.8.7-p299のconfigure.inは AC_PREREQ(2.58) と宣言されている

というあたりかと。トリガーとなったコミットは以下

=================================================================
commit 98e7a2abca70fd044d5db7e1404c218e74abbd33
Author: shyouhei <shyouhei / b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date:   Tue Jun 8 08:42:55 2010 +0000

    merge revision(s) 27721:27725,27738:27740:
        * pack.c: backport integer pack/unpack from 1.9 for [ruby-core:21937].
        * configure.in: backport RUBY_DEFINT and fixed size integer checks.
        * ruby.h: include stdint.h if available.
        * bignum.c (rb_big_pack): defined..
          (rb_big_unpack): defined.
        * intern.h (rb_big_pack): declared.
          (rb_big_unpack): declared.
        * pack.c (pack_pack): call rb_quad_pack to preserve RangeError.


    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@28220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

diff --git a/ChangeLog b/ChangeLog
index eb81de2..66123e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+Tue Jun  8 17:32:37 2010  Tanaka Akira  <akr / fsij.org>
+
+       * pack.c (pack_pack): call rb_quad_pack to preserve RangeError.
+
+Tue Jun  8 17:32:37 2010  Tanaka Akira  <akr / fsij.org>
+
+       * pack.c: backport integer pack/unpack from 1.9 for [ruby-core:21937].
+
+       * configure.in: backport RUBY_DEFINT and fixed size integer checks.
+
+       * ruby.h: include stdint.h if available.
+
+       * bignum.c (rb_big_pack): defined..
+         (rb_big_unpack): defined.
+
+       * intern.h (rb_big_pack): declared.
+         (rb_big_unpack): declared.
+
=================================================================

卜部さん、

1.AC_PREREQ(2.60) に変える
2.問題のコミットをrevert
3.AS_CASEの部分を1.8.7メンテナがモリモリ書き直す

の3択から選ぶとしたらどれがよいですか?
何を聞いているかというとRubyとかRoRでのRHEL5(とCentOS5)の使用率が分からないので一番簡単な
1を選んでしまっていいのか確信が持てない。という事なんですが。


----------------------------------------
http://redmine.ruby-lang.org