From: Radu Brumariu Date: Sat, 30 Apr 2016 15:16:28 +0000 (-0400) Subject: make DATA_MAX_NAME_LEN configurable at compile time X-Git-Tag: collectd-5.6.0~119^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=79d67c25fef3a5824c09d6dc585eae9d6235712d;p=collectd.git make DATA_MAX_NAME_LEN configurable at compile time --- diff --git a/configure.ac b/configure.ac index 45f5fafa..eaf98ec9 100644 --- a/configure.ac +++ b/configure.ac @@ -1352,6 +1352,20 @@ AC_ARG_WITH(useragent, [AS_HELP_STRING([--with-useragent@<:@=AGENT@:>@], [User a # }}} +# --with-data-max-name-len {{{ +AC_ARG_WITH(data-max-name-len, [AS_HELP_STRING([--with-data-max-name-len@<:@=VALUE@:>@], [Maximum length of data buffers])], +[ + if test "x$withval" != "x" && test $withval -gt 0 + then + AC_DEFINE_UNQUOTED(DATA_MAX_NAME_LEN, [$withval], [Maximum length of data buffers]) + else + AC_MSG_ERROR([DATA_MAX_NAME_LEN must be a positive integer -- $withval given]) + fi +], +[ AC_DEFINE(DATA_MAX_NAME_LEN, 128, [Maximum length of data buffers])] +) +# }}} + have_getfsstat="no" AC_CHECK_FUNCS(getfsstat, [have_getfsstat="yes"]) have_getvfsstat="no"