Attached is a patch to look for libvirt and libxml2 during configure.
configure will abort if either not found. It uses pkg-config or simply
AC_CHECK_LIB if pkg-config is not available. Hmm, now that I think
about it this patch is probably insufficient if pkg-config is not
available since CFLAGS will not have proper include search paths.
I wanted to get people's thoughts on using pkg-config to look for
required packages or is another approach preferred?
BTW, the libxml2 stuff will go away once we move exclusively to
libvirt. I'm using it in libxm shim now to parse libvirt's xml into
xm_config structure.
Thanks,
Jim