XMMS2 - fix version check
authorLassi Selander <sleipner@users.sourceforge.net>
Fri, 1 Jan 2010 22:53:31 +0000 (14:53 -0800)
committerBrenden Matthews <brenden@diddyinc.com>
Fri, 1 Jan 2010 22:55:53 +0000 (14:55 -0800)
Adds minimum version check for XMMS2 client libs. I couldn't get it to
check exact version cause pkg-config gets confused with XMMS2's version
number containing spaces.. Anyway it's better than not check at all.

Signed-off-by: Brenden Matthews <brenden@diddyinc.com>

configure.ac.in

index 575302d..b3c84db 100644 (file)
@@ -317,7 +317,7 @@ AC_ARG_ENABLE([xmms2],
 
 AM_CONDITIONAL(BUILD_XMMS2, test x$want_xmms2 = xyes)
 if test x$want_xmms2 = xyes; then
-  PKG_CHECK_MODULES([XMMS2], [xmms2-client])
+  PKG_CHECK_MODULES([XMMS2], [xmms2-client] >= [0.6])
     conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
     conky_LIBS="$conky_LIBS $XMMS2_LIBS"
     AC_DEFINE(XMMS2, 1, [Define if you want XMMS2 support])