Comparison

configure @ 9421:03b50f5bd8cd

configure: Replace logic constructs with explicit if/else statements
author Matthew Wild <mwild1@gmail.com>
date Mon, 01 Oct 2018 15:32:47 +0100
parent 9420:3b8c4b2c6ba1
child 9422:b7aad88c537b
comparison
equal deleted inserted replaced
9420:3b8c4b2c6ba1 9421:03b50f5bd8cd
416 } 416 }
417 fi 417 fi
418 418
419 if [ "$lua_interp_found" != "yes" -a "$RUNWITH_SET" != "yes" ] 419 if [ "$lua_interp_found" != "yes" -a "$RUNWITH_SET" != "yes" ]
420 then 420 then
421 [ "$LUA_VERSION_SET" ] && { interp="Lua $LUA_VERSION" ;} || { interp="Lua" ;} 421 if [ "$LUA_VERSION_SET" ]; then
422 [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { where="\$PATH" ;} 422 interp="Lua $LUA_VERSION";
423 else
424 interp="Lua";
425 fi
426 if [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ]; then
427 where="$LUA_BINDIR";
428 else
429 where="\$PATH";
430 fi
423 echo "$interp interpreter not found in $where" 431 echo "$interp interpreter not found in $where"
424 die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help." 432 die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help."
425 fi 433 fi
426 434
427 if [ "$LUA_VERSION_SET" = "yes" -a "$RUNWITH_SET" != "yes" ] 435 if [ "$LUA_VERSION_SET" = "yes" -a "$RUNWITH_SET" != "yes" ]