[Spice-devel] [spice-common] build-sys: Add gio-2.0 to SPICE_CHECK_GLIB2

Christophe Fergeau cfergeau at redhat.com
Fri Oct 23 04:54:26 PDT 2015


GInetAddress is defined in gio, not glib. Not checking for gio-2.0 in
SPICE_CHECK_GLIB2 means gio won't be in GLIB2_LIBS, which causes link
errors when trying to build spice-server.
---
 m4/spice-deps.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 117d346..59744d2 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -142,7 +142,7 @@ AC_DEFUN([SPICE_CHECK_PIXMAN], [
 # use in the GLIB2_CFLAGS and GLIB2_LIBS variables.
 #------------------
 AC_DEFUN([SPICE_CHECK_GLIB2], [
-    PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.22)
+    PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.22 gio-2.0 >= 2.22)
 ])
 
 # SPICE_CHECK_PYTHON_MODULES()
-- 
2.5.0



More information about the Spice-devel mailing list