[Libreoffice-commits] online.git: configure.ac
Tor Lillqvist
tml at collabora.com
Thu Oct 26 14:03:33 UTC 2017
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 396c1488b42a89a7b6dad06583b66db3476301f6
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Oct 26 16:53:43 2017 +0300
Avoid test: : integer expression expected
Change-Id: I87f087a29ab4dc5cf94b0eee2a115b77c8283552
diff --git a/configure.ac b/configure.ac
index 8c405778..5d458fa4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,7 +146,7 @@ fi
AC_SUBST(LOOLWSD_LOGFILE)
MAX_CONNECTIONS=20
-AS_IF([test -n "$with_max_connections" -a "$with_max_connections" -gt "0"],
+AS_IF([test -n "$with_max_connections" && test "$with_max_connections" -gt "0"],
[MAX_CONNECTIONS="$with_max_connections"])
AS_IF([test "$MAX_CONNECTIONS" -lt "3"],
[MAX_CONNECTIONS="3"])
@@ -154,7 +154,7 @@ AC_DEFINE_UNQUOTED([MAX_CONNECTIONS],[$MAX_CONNECTIONS],[Limit the maximum numbe
AC_SUBST(MAX_CONNECTIONS)
MAX_DOCUMENTS=10
-AS_IF([test -n "$with_max_documents" -a "$with_max_documents" -gt "0"],
+AS_IF([test -n "$with_max_documents" && test "$with_max_documents" -gt "0"],
[MAX_DOCUMENTS="$with_max_documents"])
AS_IF([test "$MAX_DOCUMENTS" -gt "$MAX_CONNECTIONS"],
[MAX_DOCUMENTS="$MAX_CONNECTIONS"])
More information about the Libreoffice-commits
mailing list