diff options
-rw-r--r-- | .github/workflows/baseruby.yml | 2 | ||||
-rw-r--r-- | .github/workflows/check_dependencies.yml | 2 | ||||
-rw-r--r-- | .github/workflows/compilers.yml | 2 | ||||
-rw-r--r-- | .github/workflows/macos.yml | 2 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 2 | ||||
-rw-r--r-- | README.ja.md | 23 | ||||
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | aclocal.m4 | 48 | ||||
-rw-r--r-- | autogen.sh | 9 | ||||
-rw-r--r-- | configure.ac | 35 | ||||
-rw-r--r-- | version.h | 2 |
12 files changed, 66 insertions, 75 deletions
diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index bdb9011f25..16d1e4a85a 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -25,7 +25,7 @@ jobs: bundler: none - run: echo "make=make -sj$((1 + $(nproc --all)))" >> $GITHUB_ENV - run: sudo apt-get install build-essential autoconf bison - - run: autoconf + - run: ./autogen.sh - run: ./configure --disable-install-doc - run: $make update-unicode - run: $make common-srcs diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index c878caddeb..b5c5ea3036 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -24,7 +24,7 @@ jobs: run: | git config --global advice.detachedHead 0 - uses: actions/checkout@v2 - - run: autoconf + - run: ./autogen.sh - name: Run configure run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g' - run: make all golf diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index 532e4589e2..b954c64bd8 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -167,7 +167,7 @@ jobs: - uses: actions/checkout@v2 with: path: src - - run: autoconf + - run: ./autogen.sh working-directory: src - name: Run configure run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f0355258f1..c1207aaf01 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -32,7 +32,7 @@ jobs: - name: Set ENV run: | echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV - - run: autoconf + - run: ./autogen.sh working-directory: src - name: Run configure run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 68889ecf3d..7695a47359 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -35,7 +35,7 @@ jobs: - name: Set ENV run: | echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV - - run: autoconf + - run: ./autogen.sh working-directory: src - name: Run configure run: ../src/configure -C --disable-install-doc diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index fe517d2750..f222f25e7e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -53,7 +53,7 @@ jobs: - name: Set ENV run: | echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV - - run: autoconf + - run: ./autogen.sh working-directory: src - name: Run configure run: ../src/configure -C --disable-install-doc cppflags=${{ matrix.debug }} diff --git a/README.ja.md b/README.ja.md index bee6433c62..6663b94680 100644 --- a/README.ja.md +++ b/README.ja.md @@ -52,11 +52,11 @@ Rubyリポジトリの本来のmasterは https://git.ruby-lang.org/ruby.git に ### Subversion -古いRubyのバージョンのソースコードは次のコマンドで取得できます. +古いRubyのバージョンのソースコードは次のコマンドでも取得できます. $ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby -他に開発中のブランチの一覧は次のコマンドで見られます. +他のブランチの一覧は次のコマンドで見られます. $ svn ls https://svn.ruby-lang.org/repos/ruby/branches/ @@ -71,31 +71,26 @@ https://www.ruby-lang.org/ ## メーリングリスト -Rubyのメーリングリストがあります.参加希望の方は - -mailto:ruby-list-request@ruby-lang.org - -まで本文に +Rubyのメーリングリストがあります.参加希望の方は [ruby-list-request@ruby-lang.org] まで本文に subscribe と書いて送って下さい. -Ruby開発者向けメーリングリストもあります.こちらではrubyのバグ,将来の仕様拡張など実装上の問題について議論されています. 参加希望の方は - -mailto:ruby-dev-request@ruby-lang.org - -までruby-listと同様の方法でメールしてください. +Ruby開発者向けメーリングリストもあります.こちらではrubyのバグ,将来の仕様拡張など実装上の問題について議論されています. +参加希望の方は [ruby-dev-request@ruby-lang.org] までruby-listと同様の方法でメールしてください. Ruby拡張モジュールについて話し合うruby-extメーリングリストと数学関係の話題について話し合うruby-mathメーリングリストと 英語でrubyについて話し合うruby-talkメーリングリストもあります.参加方法はどれも同じです. +[ruby-list-request@ruby-lang.org]: mailto:ruby-list-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe +[ruby-dev-request@ruby-lang.org]: mailto:ruby-dev-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe + ## コンパイル・インストール 以下の手順で行ってください. -1. もし `configure` ファイルが見つからない,もしくは `configure.ac` より古いようなら, `autoconf` を実行して - 新しく `configure` を生成する +1. (Gitリポジトリから取得したソースをビルドする場合) `./autogen.sh` を実行して新しく `configure` を生成する 2. `configure` を実行して `Makefile` などを生成する @@ -51,7 +51,8 @@ if you are a committer. ### Subversion -Stable branches for older Ruby versions can be checked out with the following command: +Stable branches for older Ruby versions can be checked out with also the +following command: $ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby @@ -71,16 +72,17 @@ send the following phrase: subscribe -in the mail body (not subject) to the address -[ruby-talk-request@ruby-lang.org](mailto:ruby-talk-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe). +in the mail body (not subject) to the address [ruby-talk-request@ruby-lang.org]. + +[ruby-talk-request@ruby-lang.org]: mailto:ruby-talk-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe ## How to compile and install 1. If you want to use Microsoft Visual C++ to compile Ruby, read [win32/README.win32](win32/README.win32) instead of this document. -2. If `./configure` does not exist or is older than `configure.ac`, run - `autoconf` to (re)generate configure. +2. Run `./autogen.sh` to generate configure, when you build the source checked + out from the Git repository. 3. Run `./configure`, which will generate `config.h` and `Makefile`. diff --git a/aclocal.m4 b/aclocal.m4 index 940d91e83f..e69de29bb2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,48 +0,0 @@ -# generated automatically by aclocal 1.16.2 -*- Autoconf -*- - -# Copyright (C) 1996-2020 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_include([tool/m4/_colorize_result_prepare.m4]) -m4_include([tool/m4/ac_msg_result.m4]) -m4_include([tool/m4/colorize_result.m4]) -m4_include([tool/m4/ruby_append_option.m4]) -m4_include([tool/m4/ruby_append_options.m4]) -m4_include([tool/m4/ruby_check_builtin_func.m4]) -m4_include([tool/m4/ruby_check_builtin_setjmp.m4]) -m4_include([tool/m4/ruby_check_printf_prefix.m4]) -m4_include([tool/m4/ruby_check_setjmp.m4]) -m4_include([tool/m4/ruby_check_signedness.m4]) -m4_include([tool/m4/ruby_check_sizeof.m4]) -m4_include([tool/m4/ruby_check_sysconf.m4]) -m4_include([tool/m4/ruby_cppoutfile.m4]) -m4_include([tool/m4/ruby_decl_attribute.m4]) -m4_include([tool/m4/ruby_default_arch.m4]) -m4_include([tool/m4/ruby_define_if.m4]) -m4_include([tool/m4/ruby_defint.m4]) -m4_include([tool/m4/ruby_dtrace_available.m4]) -m4_include([tool/m4/ruby_dtrace_postprocess.m4]) -m4_include([tool/m4/ruby_func_attribute.m4]) -m4_include([tool/m4/ruby_mingw32.m4]) -m4_include([tool/m4/ruby_prepend_option.m4]) -m4_include([tool/m4/ruby_prog_gnu_ld.m4]) -m4_include([tool/m4/ruby_replace_funcs.m4]) -m4_include([tool/m4/ruby_replace_type.m4]) -m4_include([tool/m4/ruby_rm_recursive.m4]) -m4_include([tool/m4/ruby_setjmp_type.m4]) -m4_include([tool/m4/ruby_stack_grow_direction.m4]) -m4_include([tool/m4/ruby_try_cflags.m4]) -m4_include([tool/m4/ruby_try_cxxflags.m4]) -m4_include([tool/m4/ruby_try_ldflags.m4]) -m4_include([tool/m4/ruby_type_attribute.m4]) -m4_include([tool/m4/ruby_universal_arch.m4]) -m4_include([tool/m4/ruby_werror_flag.m4]) diff --git a/autogen.sh b/autogen.sh new file mode 100644 index 0000000000..44a1922cb0 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +PWD= +case "$0" in +*/*) srcdir=`dirname $0`;; +*) srcdir="";; +esac + +exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"} diff --git a/configure.ac b/configure.ac index 2920b7e760..2dcebdde9f 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT { AC_CONFIG_AUX_DIR(tool) -AC_CONFIG_MACRO_DIRS(tool/m4) AC_PREREQ(2.67) @@ -10,6 +9,40 @@ tooldir="$srcdir/tool" AC_DISABLE_OPTION_CHECKING +m4_include([tool/m4/_colorize_result_prepare.m4]) +m4_include([tool/m4/ac_msg_result.m4]) +m4_include([tool/m4/colorize_result.m4]) +m4_include([tool/m4/ruby_append_option.m4]) +m4_include([tool/m4/ruby_append_options.m4]) +m4_include([tool/m4/ruby_check_builtin_func.m4]) +m4_include([tool/m4/ruby_check_builtin_setjmp.m4]) +m4_include([tool/m4/ruby_check_printf_prefix.m4]) +m4_include([tool/m4/ruby_check_setjmp.m4]) +m4_include([tool/m4/ruby_check_signedness.m4]) +m4_include([tool/m4/ruby_check_sizeof.m4]) +m4_include([tool/m4/ruby_check_sysconf.m4]) +m4_include([tool/m4/ruby_cppoutfile.m4]) +m4_include([tool/m4/ruby_decl_attribute.m4]) +m4_include([tool/m4/ruby_default_arch.m4]) +m4_include([tool/m4/ruby_define_if.m4]) +m4_include([tool/m4/ruby_defint.m4]) +m4_include([tool/m4/ruby_dtrace_available.m4]) +m4_include([tool/m4/ruby_dtrace_postprocess.m4]) +m4_include([tool/m4/ruby_func_attribute.m4]) +m4_include([tool/m4/ruby_mingw32.m4]) +m4_include([tool/m4/ruby_prepend_option.m4]) +m4_include([tool/m4/ruby_prog_gnu_ld.m4]) +m4_include([tool/m4/ruby_replace_funcs.m4]) +m4_include([tool/m4/ruby_replace_type.m4]) +m4_include([tool/m4/ruby_rm_recursive.m4]) +m4_include([tool/m4/ruby_setjmp_type.m4]) +m4_include([tool/m4/ruby_stack_grow_direction.m4]) +m4_include([tool/m4/ruby_try_cflags.m4]) +m4_include([tool/m4/ruby_try_cxxflags.m4]) +m4_include([tool/m4/ruby_try_ldflags.m4]) +m4_include([tool/m4/ruby_universal_arch.m4]) +m4_include([tool/m4/ruby_werror_flag.m4]) + AC_ARG_VAR([cflags], [additional CFLAGS (ignored when CFLAGS is given)]) AC_ARG_VAR([cppflags], [additional CPPFLAGS (ignored when CPPFLAGS is given)]) AC_ARG_VAR([cxxflags], [additional CXXFLAGS (ignored when CXXFLAGS is given)]) @@ -12,7 +12,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 2 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 69 +#define RUBY_PATCHLEVEL 70 #define RUBY_RELEASE_YEAR 2021 #define RUBY_RELEASE_MONTH 4 |