aboutsummaryrefslogtreecommitdiffstats
path: root/tool/m4/ruby_try_cxxflags.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tool/m4/ruby_try_cxxflags.m4')
-rw-r--r--tool/m4/ruby_try_cxxflags.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/m4/ruby_try_cxxflags.m4 b/tool/m4/ruby_try_cxxflags.m4
index 5f84140670..265f79a450 100644
--- a/tool/m4/ruby_try_cxxflags.m4
+++ b/tool/m4/ruby_try_cxxflags.m4
@@ -5,7 +5,7 @@ AC_DEFUN([RUBY_TRY_CXXFLAGS], [
AC_MSG_CHECKING([whether ]$1[ is accepted as CXXFLAGS])
RUBY_WERROR_FLAG([
AC_LANG_PUSH([C++])
- AC_TRY_LINK([$4], [$5],
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$4]], [[$5]])],
[$2
AC_MSG_RESULT(yes)],
[$3