From e7117115399981e1258ca6301e76cc3a24c509e7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 18 Jun 2022 13:40:46 +0900 Subject: [PATCH] Show gcc version if too old, and move to GCC block [ci skip] --- configure.ac | 8 ++++---- 1 file 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