summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-04-04 11:04:05 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-04-04 11:04:05 +0200
commit7e5e920406a0acccb3f7e482ec2f20dd336fbb67 (patch)
tree534edf48051eec2aae2864b154a0852b879fbc13
parentd87f97211e83e565e43e8fcffc3672c528c28ead (diff)
Add configure option to enable hard user/doc limitfeature/cib_contract173
--enable-hard-limit
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
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],