1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/m4
Nobuyoshi Nakada 29bbad9399
Fix 2.7 build (#4359)
* merge revision(s) fcc88da5eb:

	configure.ac: fix for upcoming autoconf-2.70

	The failure initially noticed on `autoconf-2.69d` (soon to become 2.70):

	```
	$ ./configure
	./configure: line 8720: syntax error near unexpected token `fi'
	./configure: line 8720: `fi'
	```

	Before the change generated `./configure ` snippet looked like:

	```
	    if ! $CC -E -xc - <<SRC >/dev/null
	then :

		#if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
		#error premature clang
		#endif
	SRC
		as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5
	fi
	```

	Note the newline that breaks here-document syntax.

	After the change the snippet does not use here-document.

	Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
	---
	 configure.ac | 15 ++++++++-------
	 1 file changed, 8 insertions(+), 7 deletions(-)

* merge revision(s) 0df67a4695:

	Signal handler type should be void

	---
	 configure.ac                          |  1 -
	 include/ruby/internal/intern/signal.h |  3 +--
	 signal.c                              | 14 +++++++-------
	 vm_core.h                             |  2 +-
	 win32/Makefile.sub                    |  1 -
	 5 files changed, 9 insertions(+), 12 deletions(-)

* merge revision(s) 4d2ad8d737:

	Removed obsolete autoconf checks

	Use regular `AC_CHECK_MEMBERS` instead of:
	* `AC_STRUCT_ST_BLKSIZE`
	* `AC_STRUCT_ST_BLOCKS`
	* `AC_STRUCT_ST_RDEV`
	---
	 configure.ac         | 6 +++---
	 missing/fileblocks.c | 1 -
	 win32/Makefile.sub   | 1 -
	 3 files changed, 3 insertions(+), 5 deletions(-)
	 delete mode 100644 missing/fileblocks.c

* merge revision(s) 3b7c05ef8d:

	Fixed RUBY_RM_RECURSIVE when autoconf met the required version

	Before 9189cf5793 the result of
	`m4_version_compare` was compared to -1, however the `$2` of
	`m4_version_prereq` has different meaning and is expanded when
	the required version met.
	---
	 tool/m4/ruby_rm_recursive.m4 | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)

* merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255,48bb0329eb325bc5b77c222f45b8dc97a208d986:

	Update for autoconf 2.70

	---
	 configure.ac                         | 232 +++++++++++++++++------------------
	 tool/m4/ruby_check_builtin_setjmp.m4 |   8 +-
	 tool/m4/ruby_check_printf_prefix.m4  |   9 +-
	 tool/m4/ruby_check_setjmp.m4         |   6 +-
	 tool/m4/ruby_check_sysconf.m4        |   6 +-
	 tool/m4/ruby_cppoutfile.m4           |   4 +-
	 tool/m4/ruby_decl_attribute.m4       |   4 +-
	 tool/m4/ruby_dtrace_available.m4     |   2 +-
	 tool/m4/ruby_dtrace_postprocess.m4   |   2 +-
	 tool/m4/ruby_mingw32.m4              |   4 +-
	 tool/m4/ruby_stack_grow_direction.m4 |   4 +-
	 tool/m4/ruby_try_cflags.m4           |   2 +-
	 tool/m4/ruby_try_cxxflags.m4         |   2 +-
	 tool/m4/ruby_try_ldflags.m4          |   2 +-
	 14 files changed, 143 insertions(+), 144 deletions(-)

	Revert AC_PROG_CC_C99 for -std=gnu99 option to gcc 4.8

	---
	 configure.ac | 5 ++++-
	 1 file changed, 4 insertions(+), 1 deletion(-)

Co-authored-by: Sergei Trofimovich <slyfox@gentoo.org>
2021-05-31 23:04:44 +09:00
..
_colorize_result_prepare.m4 _colorize_result_prepare.m4: do not save CONFIGURE_TTY 2018-11-19 07:00:12 +00:00
ac_msg_result.m4
colorize_result.m4
ruby_append_option.m4
ruby_append_options.m4
ruby_check_builtin_func.m4
ruby_check_builtin_setjmp.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_check_printf_prefix.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_check_setjmp.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_check_signedness.m4
ruby_check_sizeof.m4
ruby_check_sysconf.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_cppoutfile.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_decl_attribute.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_default_arch.m4
ruby_define_if.m4
ruby_defint.m4
ruby_dtrace_available.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_dtrace_postprocess.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_func_attribute.m4
ruby_mingw32.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_prepend_option.m4
ruby_prog_gnu_ld.m4
ruby_replace_funcs.m4 configure.ac: check finite,isinf,isnan as macros first 2019-02-08 07:22:55 +00:00
ruby_replace_type.m4
ruby_rm_recursive.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_setjmp_type.m4 typedef rb_jmpbuf_t to void *[5] if __builtin_setjmp is used 2019-09-21 13:24:58 +09:00
ruby_stack_grow_direction.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_try_cflags.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_try_ldflags.m4 Fix 2.7 build (#4359) 2021-05-31 23:04:44 +09:00
ruby_type_attribute.m4
ruby_universal_arch.m4 merge revision(s) f96216df8dfd2d1e206150572912289f4dda7386,0091fac1d8de07e86fef8315ba77609bed9dd7f5,04c704c5c967ea9bded6bf645439fe59c7d9f7d6,23655e6de5ee989feb8c65c7061fe9a71579dc54,7cb8904a12c850ee30dcd67817fa2f9dc3fee813,41168f69fbeb32cfc88210911d62e419b8116589,87f6154bb4c67ca77ee353bb1fe25a922036c0e5: [Backport #17202] 2020-09-30 19:24:17 +09:00
ruby_werror_flag.m4