mirror of https://github.com/aria2/aria2
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-115pull/117/merge
parent
90c39522a2
commit
303f987ee9
|
@ -54,6 +54,11 @@ AC_ARG_WITH([ca-bundle],
|
|||
AS_HELP_STRING([--with-ca-bundle=FILE],[Use FILE as default CA bundle.]),
|
||||
[ca_bundle=$withval], [ca_bundle=""])
|
||||
|
||||
AC_ARG_WITH([disk-cache],
|
||||
AS_HELP_STRING([--with-disk-cache=SIZE],[Use SIZE as the default disk-cache size.]),
|
||||
[AC_DEFINE_UNQUOTED([DEFAULT_DISK_CACHE], ["$withval"], [Define to choose default disk-cache size])],
|
||||
[])
|
||||
|
||||
AC_ARG_WITH([bashcompletiondir],
|
||||
AS_HELP_STRING([--with-bashcompletiondir=DIR],
|
||||
[Directory to install bash_completion file]),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue