Browse Source

mic-configure: fix test to check mic host compiler is available

Nathalie Furmento 11 years ago
parent
commit
deb20004f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      mic-configure

+ 2 - 1
mic-configure

@@ -28,7 +28,8 @@ do
 
 done
 
-if [ ! -x "${mic_host}-gcc" ]
+x=$(type -t ${mic_host}-gcc)
+if [ -z "$x" ]
 then
     echo "[error] please add path to ${mic_host}-gcc in your PATH"
     exit 1