diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-01 15:32:47 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-01 15:32:47 +0100 |
commit | 6733f15180f02ed69980a546930e7e20d3558d9c (patch) | |
tree | 4f7c1670006d3d7054427032423bd5747e7751f0 | |
parent | 4b6b6d82bed19520308170485329b6015506a3e9 (diff) | |
download | prosody-6733f15180f02ed69980a546930e7e20d3558d9c.tar.gz prosody-6733f15180f02ed69980a546930e7e20d3558d9c.zip |
configure: Replace logic constructs with explicit if/else statements
-rwxr-xr-x | configure | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |