AC_SUBST(BLUEZ_CFLAGS)
fi
+PKG_CHECK_MODULES(GEOCLUE, geoclue, HAVE_GEOCLUE=yes, HAVE_GEOCLUE=no)
+
+AM_CONDITIONAL(WITH_HILDON, test "x$HAVE_HILDON" = "xyes")
+
+if test "x$HAVE_GEOCLUE" = "xyes"; then
+ AC_DEFINE(WITH_GEOCLUE, 1, [build with Geoclue])
+ AC_SUBST(GEOCLUE_CFLAGS)
+ AC_SUBST(GEOCLUE_LIBS)
+fi
+
PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
AC_SUBST(GNOME_VFS_LIBS)
AC_SUBST(GNOME_VFS_CFLAGS)
AC_SUBST(SQLITE_LIBS)
AC_SUBST(SQLITE_CFLAGS)
-PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10)
-AC_SUBST(GSTREAMER_LIBS)
-AC_SUBST(GSTREAMER_CFLAGS)
+PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, HAVE_GST=yes, HAVE_GST=no)
+if test "x$HAVE_GST" = "xyes"; then
+ AC_DEFINE(WITH_GST, 1, [build with Gstreamer])
+ AC_SUBST(GSTREAMER_LIBS)
+ AC_SUBST(GSTREAMER_CFLAGS)
+fi
# XXX: Check for expat
AC_CHECK_HEADER(expat.h)