diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-18 13:40:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-18 13:40:46 +0900 |
commit | e7117115399981e1258ca6301e76cc3a24c509e7 (patch) | |
tree | df0a7808a7c0059d55a93413805499ec92b95b6d /configure.ac | |
parent | e77d2c296e101a8c2d2d503b082214faa783b5d6 (diff) |
Show gcc version if too old, and move to GCC block [ci skip]
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index fb6fd62664..cb9dea3c77 100644 --- a/configure.ac +++ b/configure.ac @@ -370,14 +370,14 @@ AS_IF([test "$GCC" = yes], [ icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///;/^__ICC/d'` test -n "$icc_version" || icc_version=0 # RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"]) + + AS_IF([test "$gcc_major" -lt 3], [ + AC_MSG_ERROR([too old GCC: $gcc_major.$gcc_minor]) + ]) ], [ linker_flag= ]) -AS_IF([test "$GCC" = yes -a "$gcc_major" -lt 3 ], [ - AC_MSG_ERROR([too old GCC]) -]) - RUBY_PROG_GNU_LD RUBY_CPPOUTFILE |