AC_DEFINE([WITH_BLUEZ_DBUS_BT], 1, [bluez D-Bus bluetooth])
fi
+AM_CONDITIONAL(HAVE_HILDON_DBUS_BT, [test "$enable_itbtdbus" = "yes"])
+AM_CONDITIONAL(HAVE_BLUEZ_DBUS_BT, [test "$enable_btdbus" = "yes"])
+
if test "x$enable_hildon" = "xyes" ; then
dnl Ckeck for hildon-libs
PKG_CHECK_MODULES(HILDON, hildon-libs, HAVE_HILDON=yes, HAVE_HILDON=no)
AC_DEFINE(WITH_LIBGPS, 1, [build with gpsd])
fi
fi
+AM_CONDITIONAL(HAVE_GPSD, [test "$enable_gpsd" = "yes"])
if test "x$enable_gypsy" = "xyes" ; then
PKG_CHECK_MODULES(GYPSY, [gypsy]) AC_SUBST(GYPSY_CFLAGS) AC_SUBST(GYPSY_LIBS)
AC_DEFINE(WITH_GYPSY, 1, [build with gypsy])
fi
+AM_CONDITIONAL(HAVE_GYPSY, [test "$enable_gypsy" = "yes"])
if test "x$enable_geoclue" = "xyes" ; then
PKG_CHECK_MODULES(GEOCLUE, geoclue, HAVE_GEOCLUE=yes, HAVE_GEOCLUE=no)
AC_SUBST(GEOCLUE_LIBS)
fi
fi
+AM_CONDITIONAL(HAVE_GYPSY, [test "$enable_geoclue" = "yes"])
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)
mapper_SOURCES = utils.c \
file.c \
gpx.c \
- bt-bluez.c \
- bt-maemo-marshal.c \
- bt-maemo.c \
gps.c \
gps-browse.c \
gps-nmea-parse.c \
search.c \
mapper.c
+if HAVE_BLUEZ_DBUS_BT
+mapper_SOURCES+=gps-bluetooth-bluez.c
+endif
+
+if HAVE_HILDON_DBUS_BT
+mapper_SOURCES+=gps-bluetooth-maemo.c gps-bluetooth-maemo-marshal.c
+endif
+
+#if HAVE_GPSD
+#mapper_SOURCES+=gps-gpsd.c
+#endif
+
+#if HAVE_GYPSY
+#mapper_SOURCES+=gps-gypsy.c
+#endif
+
osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) $(BZ2_LIBS) -lm libosmdb.la
osm2db_SOURCES = osm.c
libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS)
libosmdb_la_LDFLAGS = -lm -no-undefined
-EXTRA_DIST = bt-maemo-marshal.list
+EXTRA_DIST = gps-bluetooth-maemo-marshal.list
-BUILT_SOURCES = bt-maemo-marshal.h bt-maemo-marshal.c
+BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c
-bt-maemo-marshal.h: bt-maemo-marshal.list
+gps-bluetooth-maemo-marshal.h: gps-bluetooth-maemo-marshal.list
glib-genmarshal --prefix _bt_maemo --header $< > $@
-bt-maemo-marshal.c: bt-maemo-marshal.list
+gps-bluetooth-maemo-marshal.c: gps-bluetooth-maemo-marshal.list
glib-genmarshal --prefix _bt_maemo --body $< > $@