summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-21 15:47:28 +0000
committersmatz <smatz@openttd.org>2009-09-21 15:47:28 +0000
commit905092b4436f8c1d22dd9c8a10993fcd21ae292d (patch)
tree83f8aa1b017f09f69f5c86b5254fd9ab1685ac89
parent662ef3173b5eb27905255929401c7d18b349f8f0 (diff)
downloadopenttd-905092b4436f8c1d22dd9c8a10993fcd21ae292d.tar.xz
(svn r17599) -Fix: configure script didn't detect icc when CC included path to compiler
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index aab42f9f1..a77001b24 100644
--- a/config.lib
+++ b/config.lib
@@ -1048,7 +1048,7 @@ make_compiler_cflags() {
cxxflags="$4"
ldflags="$6"
- if [ `echo $1 | cut -c 1-3` = "icc" ]; then
+ if [ `basename $1 | cut -c 1-3` = "icc" ]; then
# Enable some things only for certain ICC versions
cc_version=`$1 -dumpversion | cut -c 1-4 | sed s@\\\.@@g`