[Spice-devel] [RFC 15/33] configure.ac/Makefile.am: add SUPPORT_XSPICE
Alon Levy
alevy at redhat.com
Wed Apr 27 08:56:04 PDT 2011
---
configure.ac | 2 ++
src/Makefile.am | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 99bc517..6a183df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,8 @@ PKG_CHECK_MODULES([SPICE], [spice-server >= 0.6.3],
)
PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.7.0])
+AM_CONDITIONAL(SUPPORT_XSPICE, test "x$SPICE_LIBS" != "x")
+
DRIVER_NAME=qxl
AC_SUBST([DRIVER_NAME])
diff --git a/src/Makefile.am b/src/Makefile.am
index ff4fa14..2624039 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -47,3 +47,26 @@ qxl_drv_la_SOURCES = \
lookup3.c \
lookup3.h \
qxl_cursor.c
+
+if SUPPORT_XSPICE
+spiceqxl_drv_la_LTLIBRARIES = spiceqxl_drv.la
+spiceqxl_drv_la_LDFLAGS = -module -avoid-version $(SPICE_LIBS)
+spiceqxl_drv_ladir = @moduledir@/drivers
+
+spiceqxl_drv_la_CFLAGS = -DXSPICE $(AM_CFLAGS)
+
+spiceqxl_drv_la_LIBADD = uxa/libuxa.la
+
+spiceqxl_drv_la_SOURCES = \
+ qxl.h \
+ qxl_driver.c \
+ qxl_image.c \
+ qxl_surface.c \
+ qxl_ring.c \
+ qxl_mem.c \
+ mspace.c \
+ mspace.h \
+ lookup3.c \
+ lookup3.h \
+ qxl_cursor.c
+endif
--
1.7.4.4
More information about the Spice-devel
mailing list