[前][次][番号順一覧][スレッド一覧]

ruby-changes:60656

From: Nobuyoshi <ko1@a...>
Date: Sun, 5 Apr 2020 09:27:15 +0900 (JST)
Subject: [ruby-changes:60656] 4a6571dbc1 (master): Moved aclocal.m4 to macro directory

https://git.ruby-lang.org/ruby.git/commit/?id=4a6571dbc1

From 4a6571dbc14ee4e88c12cd9931f7695077a3ee6e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 5 Apr 2020 04:30:04 +0900
Subject: Moved aclocal.m4 to macro directory


diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 5765c05..ff7e391 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -35,7 +35,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L35
       - name: Set ENV
         run: |
           echo '::set-env name=JOBS::'-j$((1 + $(sysctl -n hw.activecpu)))
-      - run: autoconf
+      - run: autoconf -I tool/m4
         working-directory: src
       - run: mkdir build
       - name: Run configure
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index 5cccb09..0efc08a 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -68,7 +68,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L68
           mkdir install
           mkdir temp
           cd src
-          sh -c "autoreconf -fi"
+          sh -c "autoreconf -fi -I tool/m4"
 
       - name: configure
         working-directory: build
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml
index 08a659e..dff58f8 100644
--- a/.github/workflows/mjit.yml
+++ b/.github/workflows/mjit.yml
@@ -38,7 +38,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L38
       - name: Set ENV
         run: |
           echo '::set-env name=JOBS::'-j$((1 + $(nproc --all)))
-      - run: autoconf
+      - run: autoconf -I tool/m4
         working-directory: src
       - run: mkdir build
       - name: Run configure
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index c98d05c..23a8827 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -44,7 +44,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L44
       - name: Set ENV
         run: |
           echo '::set-env name=JOBS::'-j$((1 + $(nproc --all)))
-      - run: autoconf
+      - run: autoconf -I tool/m4
         working-directory: src
       - run: mkdir build
       - name: Run confiugre
diff --git a/.gitignore b/.gitignore
index 916c7aa..27f1a94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -216,6 +216,7 @@ lcov*.info https://github.com/ruby/ruby/blob/trunk/.gitignore#L216
 # /tool/
 /tool/config.guess
 /tool/config.sub
+/tool/m4/autom4te*.cache
 
 # /win32/
 /win32/*.ico
diff --git a/.travis.yml b/.travis.yml
index 1bd1ce8..17f7be9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -460,7 +460,7 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L460
   fast_finish: true
 
 before_script:
-  - rm -fr .ext autom4te.cache
+  - rm -fr .ext tool/m4/autom4te.cache
   - |-
     [ -d ~/.downloaded-cache ] ||
     mkdir ~/.downloaded-cache
diff --git a/aclocal.m4 b/aclocal.m4
deleted file mode 100644
index 2477ff4..0000000
--- a/aclocal.m4
+++ /dev/null
@@ -1,47 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/.travis.yml#L0
-# 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_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/template/Makefile.in b/template/Makefile.in
index 33ea093..51ee854 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -366,12 +366,12 @@ reconfig config.status:	$(srcdir)/$(CONFIGURE) $(srcdir)/enc/Makefile.in \ https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L366
 	@PWD= MINIRUBY="$(MINIRUBY)"; export MINIRUBY; \
 	set $(SHELL) $($@-args); $(reconfig-exec-$(V))
 
-$(srcdir)/$(CONFIGURE): $(srcdir)/configure.ac $(srcdir)/aclocal.m4
-	$(CHDIR) $(srcdir) && exec $(AUTOCONF) -o $(@F)
+$(srcdir)/$(CONFIGURE): $(srcdir)/configure.ac $(tooldir)/m4/aclocal.m4
+	$(CHDIR) $(srcdir) && exec $(AUTOCONF) -I tool/m4 -o $(@F)
 
-$(srcdir)/aclocal.m4:
+$(tooldir)/m4/aclocal.m4:
 	$(CHDIR) $(srcdir) && \
-	type $(ACLOCAL) >/dev/null 2>&1 && exec $(ACLOCAL); \
+	type $(ACLOCAL) >/dev/null 2>&1 && exec $(ACLOCAL) --output=tool/m4/$(@F); \
 	touch $(@F)
 
 prereq: $(srcdir)/$(CONFIGURE)
diff --git a/tool/m4/aclocal.m4 b/tool/m4/aclocal.m4
new file mode 100644
index 0000000..2477ff4
--- /dev/null
+++ b/tool/m4/aclocal.m4
@@ -0,0 +1,47 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/aclocal.m4#L1
+# 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_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/tool/make-snapshot b/tool/make-snapshot
index 79289d6..901ec14 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -407,13 +407,14 @@ def package(vcs, rev, destdir, tmp = nil) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L407
     end
     unless File.exist?("configure")
       print "creating configure..."
-      unless system([ENV["AUTOCONF"]]*2)
+      unless system(ENV["AUTOCONF"], "-I", "tool/m4", "-o", "configure")
         puts $colorize.fail(" failed")
         return
       end
       puts $colorize.pass(" done")
     end
     clean.add("autom4te.cache")
+    clean.add("tool/m4/autom4te.cache")
     clean.add("enc/unicode/data")
     print "creating prerequisites..."
     if File.file?("common.mk") && /^prereq/ =~ commonmk = IO.read("common.mk")
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]