summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-08-16 22:02:00 +0200
committerNils Maier <maierman@web.de>2013-08-16 22:31:56 +0200
commit303f987ee90dc56edf75df7e1e5d6002bdc514aa (patch)
treed0aa74df3d3cf38fc869a535b61a71f258773083 /src/OptionHandlerFactory.cc
parent90c39522a2217a7bbd480f759ffc1456a29474ef (diff)
Add --with-disk-cache configure option
Enables packagers more fine grained control over the default value without having to mess with config files. See GH-115
Diffstat (limited to 'src/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index 59a61423..03c8f087 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -210,7 +210,11 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
OptionHandler* op(new UnitNumberOptionHandler
(PREF_DISK_CACHE,
TEXT_DISK_CACHE,
+#ifdef DEFAULT_DISK_CACHE
+ DEFAULT_DISK_CACHE,
+#else
"16M",
+#endif
0));
op->addTag(TAG_ADVANCED);
handlers.push_back(op);