From d736a358fe84fec21c99a40155dcb7ff32c20847 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 1 Oct 2018 15:32:47 +0100 Subject: configure: Replace logic constructs with explicit if/else statements --- configure | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure b/configure index ed2fc12f..866faeb1 100755 --- a/configure +++ b/configure @@ -418,8 +418,16 @@ fi if [ "$lua_interp_found" != "yes" -a "$RUNWITH_SET" != "yes" ] then - [ "$LUA_VERSION_SET" ] && { interp="Lua $LUA_VERSION" ;} || { interp="Lua" ;} - [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { where="\$PATH" ;} + if [ "$LUA_VERSION_SET" ]; then + interp="Lua $LUA_VERSION"; + else + interp="Lua"; + fi + if [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ]; then + where="$LUA_BINDIR"; + else + where="\$PATH"; + fi echo "$interp interpreter not found in $where" die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help." fi -- cgit v1.2.3