This patch adds a new function virFindFileInPath() and uses it to find
where a binary lives in the PATH environment variable. Using this, we
can dynamically find where utility functions exist (and if they even
exists). So such we remove the build-time check for qemu-img and make it
dynamic for kvm-img and qemu-img. Several distros uses kvm-img over
qemu-img when installing KVM. kvm-img also includes several patches
which Red Hat is trying to upstream with QEMU so this patch supports
those features which are commented out in libvirt when using kvm-img
Signed-off-by: Doug Goldstein <cardoe(a)gentoo.org>
---
configure.in | 15 ---------
src/libvirt_private.syms | 1 +
src/storage_backend_fs.c | 74 ++++++++++++++++++++++++++++++++-------------
src/util.c | 28 +++++++++++++++++
src/util.h | 2 +
5 files changed, 83 insertions(+), 37 deletions(-)