Require libosinfo for virt-v2v, as it will be used soon to get more
information on guests.
---
m4/guestfs-v2v.m4 | 3 +++
v2v/Makefile.am | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/m4/guestfs-v2v.m4 b/m4/guestfs-v2v.m4
index b14c364e..54cdba13 100644
--- a/m4/guestfs-v2v.m4
+++ b/m4/guestfs-v2v.m4
@@ -17,6 +17,9 @@
dnl Virt-v2v.
+dnl Check for libosinfo (mandatory)
+PKG_CHECK_MODULES([LIBOSINFO], [libosinfo-1.0])
+
dnl nbdkit python plugin.
AC_MSG_CHECKING([for the nbdkit python plugin name])
AC_ARG_WITH([virt-v2v-nbdkit-python-plugin],
diff --git a/v2v/Makefile.am b/v2v/Makefile.am
index 64703c36..aae1ffa2 100644
--- a/v2v/Makefile.am
+++ b/v2v/Makefile.am
@@ -190,7 +190,8 @@ virt_v2v_CPPFLAGS = \
-I$(top_srcdir)/lib
virt_v2v_CFLAGS = \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
- $(LIBVIRT_CFLAGS)
+ $(LIBVIRT_CFLAGS) \
+ $(LIBOSINFO_CFLAGS)
BOBJECTS = \
$(top_builddir)/common/mlcustomize/firstboot.cmo \
@@ -225,6 +226,7 @@ OCAMLCLIBS = \
$(LIBVIRT_LIBS) \
$(LIBXML2_LIBS) \
$(JANSSON_LIBS) \
+ $(LIBOSINFO_LIBS) \
$(LIBINTL) \
-lgnu
--
2.24.1