[libvirt] [PATCH 0/9 v2] Refactor the configure.ac to reduce duplication