Diff

configure @ 9425:b741e9b9593b

configure: Fix incorrect syntax of '&&' in previous commit
author Matthew Wild <mwild1@gmail.com>
date Mon, 01 Oct 2018 16:13:28 +0100
parent 9424:3409d617dcd3
child 9426:e290a60f1f09
line wrap: on
line diff
--- a/configure	Mon Oct 01 15:59:16 2018 +0100
+++ b/configure	Mon Oct 01 16:13:28 2018 +0100
@@ -317,7 +317,7 @@
    shift
 done
 
-if [ "$PREFIX_SET" = "yes" && ! "$SYSCONFDIR_SET" = "yes" ]
+if [ "$PREFIX_SET" = "yes" ] && [ ! "$SYSCONFDIR_SET" = "yes" ]
 then
    if [ "$PREFIX" = "/usr" ]
    then SYSCONFDIR=/etc/$APP_DIRNAME
@@ -325,7 +325,7 @@
    fi
 fi
 
-if [ "$PREFIX_SET" = "yes" && ! "$DATADIR_SET" = "yes" ]
+if [ "$PREFIX_SET" = "yes" ] && [ ! "$DATADIR_SET" = "yes" ]
 then
    if [ "$PREFIX" = "/usr" ]
    then DATADIR=/var/lib/$APP_DIRNAME
@@ -333,7 +333,7 @@
    fi
 fi
 
-if [ "$PREFIX_SET" = "yes" && ! "$LIBDIR_SET" = "yes" ]
+if [ "$PREFIX_SET" = "yes" ] && [ ! "$LIBDIR_SET" = "yes" ]
 then
    LIBDIR=$PREFIX/lib
 fi
@@ -370,7 +370,7 @@
    else
       find_lua=$(find_program lua"$suffix")
    fi
-   if [ -n "$find_lua" && -x "$find_lua/lua$suffix" ]
+   if [ -n "$find_lua" ] && [ -x "$find_lua/lua$suffix" ]
    then
       if detect_lua_version "$find_lua/lua$suffix"
       then
@@ -393,13 +393,13 @@
 lua_interp_found=no
 if [ "$LUA_SUFFIX_SET" != "yes" ]
 then
-   if [ "$LUA_VERSION_SET" = "yes" && "$LUA_VERSION" = "5.1" ]
+   if [ "$LUA_VERSION_SET" = "yes" ] && [ "$LUA_VERSION" = "5.1" ]
    then
       suffixes="5.1 51 -5.1 -51"
-   elif [ "$LUA_VERSION_SET" = "yes" && "$LUA_VERSION" = "5.2" ]
+   elif [ "$LUA_VERSION_SET" = "yes" ] && [ "$LUA_VERSION" = "5.2" ]
    then
       suffixes="5.2 52 -5.2 -52"
-   elif [ "$LUA_VERSION_SET" = "yes" && "$LUA_VERSION" = "5.3" ]
+   elif [ "$LUA_VERSION_SET" = "yes" ] && [ "$LUA_VERSION" = "5.3" ]
    then
       suffixes="5.3 53 -5.3 -53"
    else
@@ -418,7 +418,7 @@
 }
 fi
 
-if [ "$lua_interp_found" != "yes" && "$RUNWITH_SET" != "yes" ]
+if [ "$lua_interp_found" != "yes" ] && [ "$RUNWITH_SET" != "yes" ]
 then
    if [ "$LUA_VERSION_SET" ]; then
       interp="Lua $LUA_VERSION";
@@ -434,7 +434,7 @@
    die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help."
 fi
 
-if [ "$LUA_VERSION_SET" = "yes" && "$RUNWITH_SET" != "yes" ]
+if [ "$LUA_VERSION_SET" = "yes" ] && [ "$RUNWITH_SET" != "yes" ]
 then
    echo_n "Checking if $LUA_BINDIR/lua$LUA_SUFFIX is Lua version $LUA_VERSION... "
    if detect_lua_version "$LUA_BINDIR/lua$LUA_SUFFIX"
@@ -518,7 +518,7 @@
 
 if [ "$PRNG" = "OPENSSL" ]; then
    PRNGLIBS=$OPENSSL_LIBS
-elif [ "$PRNG" = "ARC4RANDOM" && "$(uname)" = "Linux" ]; then
+elif [ "$PRNG" = "ARC4RANDOM" ] && [ "$(uname)" = "Linux" ]; then
    PRNGLIBS="-lbsd"
 fi