Patchwork [4/9] configure: require spice 0.5.3

login
register
mail settings
Submitter Gerd Hoffmann
Date Aug. 19, 2010, 12:40 p.m.
Message ID <1282221625-29501-5-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/62149/
State New
Headers show

Comments

Gerd Hoffmann - Aug. 19, 2010, 12:40 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 configure |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index 56e7084..0998e86 100755
--- a/configure
+++ b/configure
@@ -2061,11 +2061,10 @@  if test "$spice" != "no" ; then
 #include <spice.h>
 int main(void) { spice_server_new(); return 0; }
 EOF
-  spice_proto_ver=$($pkgconfig --modversion spice-protocol 2>/dev/null)
-  spice_server_ver=$($pkgconfig --modversion spice-server 2>/dev/null)
   spice_cflags=$($pkgconfig --cflags spice-protocol spice-server 2>/dev/null)
   spice_libs=$($pkgconfig --libs spice-protocol spice-server 2>/dev/null)
-  if compile_prog "$spice_cflags" "$spice_libs" ; then
+  if $pkgconfig --atleast-version=0.5.3 spice-server &&\
+     compile_prog "$spice_cflags" "$spice_libs" ; then
     spice="yes"
     libs_softmmu="$libs_softmmu $spice_libs"
     QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"