summaryrefslogtreecommitdiff
path: root/tool/m4
Commit message (Collapse)AuthorAgeFilesLines
* Fix autoconf RUBY_STACK_GROW_DIRECTION on ARM devicesBen Hamilton2023-02-261-1/+1
|
* tool/m4/ruby_wasm_tools.m4: force passing WASI_SDK_PATH when building for wasiYuta Saito2022-12-211-5/+8
| | | | | | Make the WASI_SDK_PATH variable mandatory when building for wasi host. This requirement prevents developers from being stuck due to unfriendly configuration's error message.
* Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975)Sergey Fedorov2022-10-191-0/+1
|
* Fallback `mkdir_p` to `as_mkdir_p`Nobuyoshi Nakada2022-07-071-0/+9
| | | | | Assume `mkdir -p` to be race-free on recent systems. And we do not provide install-sh anyway.
* Honor --with-thread option to enable pthreadNobuyoshi Nakada2022-05-101-4/+47
|
* Fix locations of the second argumentNobuyoshi Nakada2022-03-302-2/+2
|
* Fix a missing commaNobuyoshi Nakada2022-03-281-1/+1
|
* Use m4 comments outside macros in m4 filesNobuyoshi Nakada2022-03-281-3/+3
|
* Extract RUBY_REQUIRE_FUNCSNobuyoshi Nakada2022-03-281-0/+13
|
* RUBY_REPLACE_TYPE: check if the target type is a pointerNobuyoshi Nakada2022-02-191-1/+11
|
* Reuse the default `AC_LANG_PROGRAM(C)` definitionNobuyoshi Nakada2022-01-231-9/+1
|
* Override `AC_C_PROGRAM` on old autoconfNobuyoshi Nakada2022-01-221-0/+15
| | | | | Autoconf 2.69 fails to detect `-Werror=old-style-definition` due to the old style definition of `main`.
* [wasm] add no thread variant for freestanding environmentYuta Saito2022-01-191-0/+4
| | | | | This implementation does nothing around preemptive context switching because there is no native thread.
* [wasm] add asyncify based setjmp, fiber, register scan emulationYuta Saito2022-01-191-0/+21
| | | | | | | | | | | | | | | | | | configure.ac: setup build tools and register objects main.c: wrap main with rb_wasm_rt_start to handle asyncify unwinds tool/m4/ruby_wasm_tools.m4: setup default command based on WASI_SDK_PATH environment variable. checks wasm-opt which is used for asyncify. tool/wasm-clangw wasm/wasm-opt: a clang wrapper which replaces real wasm-opt with do-nothing wasm-opt to avoid misoptimization before asyncify. asyncify is performed at POSTLINK, but clang linker driver tries to run optimization by wasm-opt unconditionally. inlining pass at wasm level breaks asyncify's assumption, so should not optimize before POSTLIK. wasm/GNUmakefile.in: wasm specific rules to compile objects
* Allow the thread-model to be switched by configure optionYuta Saito2021-10-301-10/+15
| | | | | This change adds --with-thread=IMPL option to the configure. If not supplied, default implementation for each platform will be used.
* Select including thread impl file at config timeYuta Saito2021-10-301-0/+9
|
* Split thread-model config into another ac fileYuta Saito2021-10-301-0/+19
| | | | | This is a first step to allow the thread-model implementation to be switched by configure's option
* Checks for CPU specific header on universal buildNobuyoshi Nakada2021-10-011-0/+32
|
* Prefer `printf` like the recent autoconfNobuyoshi Nakada2021-10-011-8/+2
|
* Try "so" attribute if "smso" is not foundNobuyoshi Nakada2021-07-061-0/+1
|
* Remove comments in tool/m4 from the generated configureNobuyoshi Nakada2021-04-1734-40/+39
|
* Keep ARCH_OPTION for arm64Nobuyoshi Nakada2021-01-222-1/+2
|
* Update for autoconf 2.70Nobuyoshi Nakada2021-01-1813-28/+27
|
* Fixed RUBY_RM_RECURSIVE when autoconf met the required versionNobuyoshi Nakada2020-12-131-2/+2
| | | | | | | Before 9189cf5793cd527a86b711d15d5fd0633ec082e1 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.
* Extract correct processor name for ARM64 MacsSamuel Giddins2020-06-301-0/+3
|
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-0/+17
| | | Split ruby.h
* Revert "Moved aclocal.m4 to macro directory"Nobuyoshi Nakada2020-04-051-47/+0
| | | | | This reverts commit 4a6571dbc14ee4e88c12cd9931f7695077a3ee6e, because chkbuild does not follow.
* Moved aclocal.m4 to macro directoryNobuyoshi Nakada2020-04-051-0/+47
|
* do not assume GCC for __builtin_setjmp卜部昌平2020-02-061-1/+1
| | | | | | Namely recent Sun C compiler has this function, and is not a GCC. Meanwhile the code without RUBY_JMP_BUF assumes GCC. We have to define the macro when we detect __builtin_setjmp for non-GCC compilers.
* typedef rb_jmpbuf_t to void *[5] if __builtin_setjmp is usedFangrui Song2019-09-211-1/+1
| | | | | | The built-in version operates on a buffer of 5 words, much smaller than the size of jmp_buf defined in libc. Note, powerpc requires 5 words, while arm and x86_64 just require 3.
* Remove IA64 support.Samuel Williams2019-06-191-1/+1
|
* configure.ac: check finite,isinf,isnan as macros firstnobu2019-02-081-0/+13
| | | | | | [ruby-core:91487] [Bug #15595] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* _colorize_result_prepare.m4: do not save CONFIGURE_TTYnobu2018-11-191-5/+5
| | | | | | | | redirection to a tty, file or pipe is not a permanent status. `rb_cv_` prefix means that it should be saved/restored across re-configurations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .travis.yml: specify --tty=noshyouhei2018-11-131-1/+7
| | | | | | | | | | | To reduce the amount of output, prefer --tty=no instead of --color=never. This option not only disables color output but also kill some tty-related features, like spinners. Travis limits its output by the physical size of the log, not by the number of lines. This change should make more room for new logs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: move ASAN check to configureshyouhei2018-11-061-0/+1
| | | | | | | | | | | | | | Availability of attributes are checked in configure these days, rather than compiler macros. Also __attribute__((no_address_safety_analysis)) is considered deprecated in both GCC and Clang. Use the current best practice if available. See also: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html https://clang.llvm.org/docs/AddressSanitizer.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* support --with-arch=x86_64hshyouhei2018-10-031-4/+1
| | | | | | | | | | | | | Recent apple machines describe themselves being x86_64h. That architecture is somehow supported by their C compiler and at least by recent clang. However config.sub does not know that fact so making universal binary targeting it is rejected by the program. Why not skip the check by config.sub. [fix GH-1971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use mingw ANSI stdionobu2018-09-042-2/+3
| | | | | | [Bug #13496] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Declare as gnu_printf on mingwnobu2018-09-031-0/+5
| | | | | | | | [Bug #13496] From: MSP-Greg <MSP-Greg@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Honor --silent optionnobu2018-04-032-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed unmatched quotes and bracketsnobu2018-04-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/m4/ruby_replace_type.m4: use AC_CHECK_TYPES for HAVE_* macrosnormal2018-02-201-1/+1
| | | | | | | | | | | | | | | AC_CHECK_TYPE (no "S") does not define HAVE_* macros for types, so use AC_CHECK_TYPES (with "S") instead. Without this, HAVE_CLOCKID_T goes undefined and I can't USE_MONOTONIC_COND in thread_pthread.c :< Fixes: r62446 (git 673ae0e3c9cefd693ef82f19a6761e147fc6de93) ("configure.ac: check clockid_t with necessary headers") * tool/m4/ruby_replace_type.m4: use AC_CHECK_TYPES for HAVE_* macros [ruby-core:85659] [Bug #14494] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mjit.c: no va_copynobu2018-02-181-30/+0
| | | | | | | * mjit.c (form_args): do not use va_copy, which cannot detect appropriate way to simulate when cross compiling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby_check_va_copy.m4: for cross compilingnobu2018-02-161-16/+12
| | | | | | | * tool/m4/ruby_check_va_copy.m4 (RUBY_CHECK_VA_COPY): use AC_TRY_LINK instead of AC_TRY_RUN for cross compiling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* deal with aclocal(1)shyouhei2018-02-063-13/+1
| | | | | | | | | | | | | | | This commit updates files so that aclocal.m4 generated by aclocal(1) works well with our configure.ac * ac_checking.m4: merged back to configure.ac because aclocal(1) cannot handle this macro. * ruby_append_options.m4: no longer used. * ruby_check_va_copy.m4: define using AC_DEFUN so that aclocal(1) can find this macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix undefined behaviorkazu2018-02-051-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* need shell's escape instead of M4's.shyouhei2018-02-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* va_copy is a C99ismshyouhei2018-02-051-0/+32
| | | | | | Should provide appropriate fallback implementation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Emacs friendliness [ci skip]shyouhei2018-01-2034-0/+34
| | | | | | | Just add comment by: sed -i $'1i\\\n# -*- Autoconf -*-' tool/m4/*.m4 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refactor split configure.ac into filesshyouhei2018-01-2034-0/+757
This does not (yet) change anything. The generated configure file is the identical to previous one (except several empty lines added and deleted). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e