X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=eaf98ec9c79c4d3202a50237499412a4de4a2017;hb=da920bb48c6769e7c58cf358cdfb43983af55056;hp=b1c83013b522d06d8dcda4fb644a1bfffd46a62c;hpb=ae634791d387f8a98d1bd0c4c3fa06f912be04cd;p=collectd.git diff --git a/configure.ac b/configure.ac index b1c83013..eaf98ec9 100644 --- a/configure.ac +++ b/configure.ac @@ -83,7 +83,7 @@ AC_PATH_PROG([PROTOC], [protoc]) have_protoc3="no" if test "x$PROTOC" != "x"; then AC_MSG_CHECKING([for protoc 3.0.0+]) - if $PROTOC --version | grep -q libprotoc.3; then + if $PROTOC --version | $EGREP libprotoc.3 >/dev/null; then protoc3="yes (`$PROTOC --version`)" have_protoc3="yes" else @@ -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"