diff --git a/configure b/configure index 06f385c1da3..513ea261406 100755 --- a/configure +++ b/configure @@ -349,12 +349,15 @@ then fi fi -if [ ! -z "$CFG_ENABLE_LOCAL_RUST" -a ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ] +if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ] then - err "no local rust to use" -else - LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version` - step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV + if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ] + then + err "no local rust to use" + else + LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version` + step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV + fi fi if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]