summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-25 22:11:49 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-25 22:16:26 +0900
commit11f7c30fa7812388b8919453b92fdf5613db22dd (patch)
tree0b3b6c7387b20d8703a82cec1ed4e75636d86d71
parentfa5f7771f2312147d4b628205fdaf90afc3527e6 (diff)
configure.ac: fix the guess of icc_version
The icc_version guessing was accidentally disabled because of 61885c9b7ca8ccdaf53d7c365fbb86bad3294d88; `AC_PROG_CC_C99` changes CC like "icc -std=c99", and `AS_CASE(["x$CC"], [xicc],` does not match. The variable `icc_version` is eventually defined, so the `AS_CASE` is not needed. This change removes the `AS_CASE`.
-rw-r--r--configure.ac4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 093010d301..cd9f039bfe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,9 +239,7 @@ AS_IF([test "$GCC" = yes], [
gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'`
test -n "$gcc_major" || gcc_major=0
test -n "$gcc_minor" || gcc_minor=0
- AS_CASE(["x$CC"], [xicc], [
- icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'`
- ])
+ icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'`
test -n "$icc_version" || icc_version=0
# RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
], [