X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=1f347759035931da623ddaaf4d267dac5d161ab8;hb=15bbce792a3698d5869cf2dd54518ddc68bb14d7;hp=3f5f2d8b19e1d65b84268cdb93ae321f40e5998f;hpb=ac077f078300f47d5a6b75aaeeb0999799309283;p=collectd.git diff --git a/configure.ac b/configure.ac index 3f5f2d8b..1f347759 100644 --- a/configure.ac +++ b/configure.ac @@ -57,12 +57,17 @@ AC_PROG_YACC PKG_PROG_PKG_CONFIG AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) -AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], - [have_protobuf_c_h="yes"], - [have_protobuf_c_h="no"]) -if test "x$have_protoc_c" = "xyes" && test "x$have_protobuf_c_h" != "xyes" +if test "x$have_protoc_c" = "xno" then - have_protoc_c="no (unable to find )" + have_protoc_c="no (protoc-c compiler not found)" +else + AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], + [have_protobuf_c_h="yes"], + [have_protobuf_c_h="no"]) + if test "x$have_protobuf_c_h" = "xno" + then + have_protoc_c="no ( not found)" + fi fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes") @@ -1254,6 +1259,8 @@ have_getvfsstat="no" AC_CHECK_FUNCS(getvfsstat, [have_getvfsstat="yes"]) have_listmntent="no" AC_CHECK_FUNCS(listmntent, [have_listmntent="yes"]) +have_getmntent_r="no" +AC_CHECK_FUNCS(getmntent_r, [have_getmntent_r="yes"]) have_getmntent="no" AC_CHECK_FUNCS(getmntent, [have_getmntent="c"]) @@ -5515,6 +5522,11 @@ then plugin_df="yes" fi +if test "x$c_cv_have_getmntent_r" = "xyes" +then + plugin_df="yes" +fi + # Df plugin: Check if we have either `statfs' or `statvfs' second. if test "x$plugin_df" = "xyes" then