X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=572bedec556a5671133176c85d578d08c0a4c88b;hb=f9e76fe9ca8d5768264978041e347472052d07c1;hp=0ab605ee38e7bfd0223038e4717d29125d83f569;hpb=3e891e50eedcb53ed42b140b942947856ca9c8a0;p=collectd.git diff --git a/configure.ac b/configure.ac index 0ab605ee..572bedec 100644 --- a/configure.ac +++ b/configure.ac @@ -4225,6 +4225,16 @@ then fi if test "x$with_libpqos" = "xyes" then + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags" + AC_RUN_IFELSE([AC_LANG_PROGRAM( + [[#include ]], + [[return !(PQOS_VERSION >= 106)]])], + [with_libpqos="yes"], [with_libpqos="no (pqos library version 1.06 or higher is required)"]) + CPPFLAGS="$SAVE_CPPFLAGS" +fi +if test "x$with_libpqos" = "xyes" +then BUILD_WITH_LIBPQOS_CPPFLAGS="$with_libpqos_cppflags" BUILD_WITH_LIBPQOS_LDFLAGS="$with_libpqos_ldflags" BUILD_WITH_LIBPQOS_LIBS="-lpqos" @@ -5176,6 +5186,11 @@ if test "x$with_libupsclient" = "xyes"; then [with_libupsclient="no (symbol upscli_connect not found)"] ) + AC_CHECK_LIB([upsclient], [upscli_init], + [AC_DEFINE([WITH_UPSCLIENT_27], [1], [At least version 2-7])], + [] + ) + LDFLAGS="$SAVE_LDFLAGS" fi @@ -6082,11 +6097,6 @@ if test "x$have_sysctl" = "xyes"; then fi fi -if test "x$with_libyajl" = "xyes" && test "x$with_libyajl2" = "xyes" -then - plugin_ovs_events="yes" -fi - if test "x$have_sysctlbyname" = "xyes"; then plugin_contextswitch="yes" plugin_cpu="yes" @@ -6145,6 +6155,10 @@ if test "x$with_libyajl" = "xyes"; then plugin_log_logstash="yes" fi +if test "x$with_libyajl" = "xyes" && test "x$with_libyajl2" = "xyes"; then + plugin_ovs_events="yes" +fi + if test "x$with_libperl" = "xyes" && test "x$c_cv_have_perl_ithreads" = "xyes"; then plugin_perl="yes" fi @@ -6270,7 +6284,7 @@ AC_PLUGIN([dbi], [$with_libdbi], [General database st AC_PLUGIN([df], [$plugin_df], [Filesystem usage statistics]) AC_PLUGIN([disk], [$plugin_disk], [Disk usage statistics]) AC_PLUGIN([dns], [$with_libpcap], [DNS traffic analysis]) -AC_PLUGIN([dpdkstat], [$plugin_dpdkstat], [Stats & Status from DPDK]) +AC_PLUGIN([dpdkstat], [$plugin_dpdkstat], [Stats from DPDK]) AC_PLUGIN([drbd], [$plugin_drbd], [DRBD statistics]) AC_PLUGIN([email], [yes], [EMail statistics]) AC_PLUGIN([entropy], [$plugin_entropy], [Entropy statistics])