summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-08-07 20:13:01 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-08-26 11:01:09 +0200
commitc615ebb01c11faf7db72938472dc70a1dd12c5ba (patch)
tree9d187fd7c9ccc2eda916b13bdec9748e0ff61c3d
parent3a5fb1c5e5022d1f77bb6de6097ac4d16294a2d0 (diff)
downloadspice-c615ebb01c11faf7db72938472dc70a1dd12c5ba.tar.gz
spice-c615ebb01c11faf7db72938472dc70a1dd12c5ba.tar.xz
spice-c615ebb01c11faf7db72938472dc70a1dd12c5ba.zip
build-sys: Require a new enough spice-protocol in .pc file
spice-server headers expose SpiceImageCompression which is only available from recent spice-protocol releases. This dependency must be expressed in Requires and not Requires.private
-rw-r--r--configure.ac5
-rw-r--r--spice-server.pc.in1
2 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5048c418..dee0a28c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,8 +109,9 @@ AS_IF([test x"$have_smartcard" = "xyes"], [
AS_VAR_APPEND([SPICE_REQUIRES], [" libcacard >= 0.1.2"])
])
-PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.12.10])
-AS_VAR_APPEND([SPICE_REQUIRES], [" spice-protocol >= 0.12.10"])
+SPICE_PROTOCOL_MIN_VER=0.12.10
+PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= $SPICE_PROTOCOL_MIN_VER])
+AC_SUBST([SPICE_PROTOCOL_MIN_VER])
PKG_CHECK_MODULES([GLIB2], [glib-2.0 >= 2.22])
AS_VAR_APPEND([SPICE_REQUIRES], [" glib-2.0 >= 2.22"])
diff --git a/spice-server.pc.in b/spice-server.pc.in
index f65ddcfc..6514c44a 100644
--- a/spice-server.pc.in
+++ b/spice-server.pc.in
@@ -7,6 +7,7 @@ Name: spice
Description: SPICE server library
Version: @VERSION@
+Requires: spice-protocol >= @SPICE_PROTOCOL_MIN_VER@
Requires.private: @SPICE_REQUIRES@
Libs: -L${libdir} -lspice-server
Libs.private: @SPICE_NONPKGCONFIG_LIBS@