--- rygel-0.21.4-orig/configure.ac	2013-12-31 00:01:31.000000000 +0100
+++ rygel-0.21.4/configure.ac	2014-02-20 14:04:33.094242308 +0100
@@ -332,8 +332,15 @@
             PKG_CHECK_MODULES(TRACKER_SPARQL,
                               tracker-sparql-0.18 >=  $TRACKER_SPARQL_REQUIRED_MIN,
                               [tracker_api_version="0.18"],
-                              [])
+                              [tracker_api_version=""])
           ])
+     AS_IF([test "x$[]tracker_api_version" = "x"],
+	  [
+            PKG_CHECK_MODULES(TRACKER_SPARQL,
+                              tracker-sparql-1.0 >=  $TRACKER_SPARQL_REQUIRED_MIN,
+                              [tracker_api_version="1.0"],
+	                      [])
+	  ])
     AS_IF([test "x$enable_vala" = "xyes"],
           [VALA_CHECK_PACKAGES([tracker-sparql-$tracker_api_version])])
 
