mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update for autoconf 2.70
This commit is contained in:
parent
414438688f
commit
c32375883a
Notes:
git
2021-01-18 18:15:52 +09:00
14 changed files with 143 additions and 144 deletions
|
@ -4,8 +4,7 @@ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[
|
|||
[rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE]
|
||||
RUBY_WERROR_FLAG(RUBY_APPEND_OPTIONS(CFLAGS, $rb_cv_wsuppress_flags)
|
||||
for pri in $2; do
|
||||
AC_TRY_COMPILE(
|
||||
[@%:@include <stdio.h>
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <stdio.h>
|
||||
@%:@include <stddef.h>
|
||||
@%:@ifdef __GNUC__
|
||||
@%:@if defined __MINGW_PRINTF_FORMAT
|
||||
|
@ -18,9 +17,9 @@ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[
|
|||
@%:@else
|
||||
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl
|
||||
@%:@endif
|
||||
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);],
|
||||
[printf("%]${pri}[d", (]$1[)42);
|
||||
test_sprintf("%]${pri}[d", (]$1[)42);],
|
||||
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);]],
|
||||
[[printf("%]${pri}[d", (]$1[)42);
|
||||
test_sprintf("%]${pri}[d", (]$1[)42);]])],
|
||||
[rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break])
|
||||
done)])
|
||||
AS_IF([test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE], [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue