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`.
This commit is contained in:
Yusuke Endoh 2019-08-25 22:11:49 +09:00
Родитель fa5f7771f2
Коммит 11f7c30fa7
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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"])
], [