aboutsummaryrefslogtreecommitdiffstats
path: root/tool/m4/ruby_decl_attribute.m4
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-12 22:55:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-18 16:22:17 +0900
commitc32375883a696fcf8e9e99875f1339ee5474a255 (patch)
tree9302199c9cbe95f549031b502f5fcda11c937f8d /tool/m4/ruby_decl_attribute.m4
parent414438688fd4a90d02ab7f8e2592356e1a542161 (diff)
downloadruby-c32375883a696fcf8e9e99875f1339ee5474a255.tar.gz
Update for autoconf 2.70
Diffstat (limited to 'tool/m4/ruby_decl_attribute.m4')
-rw-r--r--tool/m4/ruby_decl_attribute.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/m4/ruby_decl_attribute.m4 b/tool/m4/ruby_decl_attribute.m4
index 3187b9be60..22358a079a 100644
--- a/tool/m4/ruby_decl_attribute.m4
+++ b/tool/m4/ruby_decl_attribute.m4
@@ -21,7 +21,7 @@ for mac in \
"__declspec(attrib_code) x" \
x; do
m4_ifval([$4],mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"})
- AC_TRY_COMPILE(
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
m4_ifval([$4],${rbcv_cond+[@%:@if ]$rbcv_cond})
[@%:@define ]attrib[](attrib_params)[ $mac]
m4_ifval([$4],${rbcv_cond+[@%:@else]}
@@ -30,7 +30,7 @@ ${rbcv_cond+[@%:@endif]})
$6
@%:@define mesg ("")
@%:@define san "address"
- attrib[](attrib_params)[;], [],
+ attrib[](attrib_params)[;]], [[]])],
[rbcv="$mac"; break])
done
])])