configure.ac |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 7e5e920406a0acccb3f7e482ec2f20dd336fbb67
Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
Date:   Wed Apr 4 11:04:05 2018 +0200

    Add configure option to enable hard user/doc limit
    
    --enable-hard-limit

diff --git a/configure.ac b/configure.ac
index 8aab94d7e..2bbf5bab0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,6 +99,10 @@ AC_ARG_WITH([max-connections],
 AC_ARG_WITH([max-documents],
              AS_HELP_STRING([--max-documents],
                            [Set the limit on the total number of documents. 
Def: 10, Min: 2.]))
+ 
+AC_ARG_ENABLE([hard-limit],
+            AS_HELP_STRING([--enable-hard-limit],
+                [Turns the max connections and max documents into a hard 
limit.]))
 
 AC_ARG_WITH([compiler-plugins],
             AS_HELP_STRING([--with-compiler-plugins=<path>],
@@ -287,6 +291,11 @@ fi
 
 AC_SUBST(ENABLE_SSL)
 
+AS_IF([test "$enable_hard_limit" == "yes"],
+      [AC_DEFINE([ENABLE_SUPPORT_KEY],1,[Whether to enable hard limit])],
+      [AC_DEFINE([ENABLE_SUPPORT_KEY],0,[Whether to enable hard limit])])
+AC_SUBST(ENABLE_SUPPORT_KEY)
+
 LIBS="$LIBS -lPocoNet${POCO_DEBUG_SUFFIX} -lPocoUtil${POCO_DEBUG_SUFFIX} 
-lPocoJSON${POCO_DEBUG_SUFFIX} -lPocoFoundation${POCO_DEBUG_SUFFIX} 
-lPocoXML${POCO_DEBUG_SUFFIX} -lPocoNetSSL${POCO_DEBUG_SUFFIX} 
-lPocoCrypto${POCO_DEBUG_SUFFIX}"
 
 AC_CHECK_HEADERS([LibreOfficeKit/LibreOfficeKit.h],
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to