From: Florian Forster Date: Thu, 30 Nov 2023 09:10:07 +0000 (+0100) Subject: configure: Improve the reporting when the "virt" plugin cannot be built. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d01736031f5fa27cb340e2a09f5d894db01a20d;p=thirdparty%2Fcollectd.git configure: Improve the reporting when the "virt" plugin cannot be built. --- diff --git a/configure.ac b/configure.ac index 5383e3e2a..7ddf754ab 100644 --- a/configure.ac +++ b/configure.ac @@ -6353,12 +6353,12 @@ fi if test "x$with_libvirt" = "xyes"; then with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`" if test $? -ne 0; then - with_libvirt="no" + with_libvirt="no (pkg-config --cflags failed)" fi with_libvirt_ldflags="`$PKG_CONFIG --libs libvirt`" if test $? -ne 0; then - with_libvirt="no" + with_libvirt="no (pkg-config --cflags failed)" fi fi @@ -7140,6 +7140,14 @@ fi if test "x$with_libxml2" = "xyes" && test "x$with_libvirt" = "xyes"; then plugin_virt="yes" +else + plugin_virt="no" + if test "x$with_libxml2" != "xyes"; then + plugin_virt="$with_libxml2" + fi + if test "x$with_libvirt" != "xyes"; then + plugin_virt="$with_libvirt" + fi fi if test "x$with_libxenctrl" = "xyes"; then