-moduleguidir=$(pkglibdir)/gui
-modulegraphicsdir=$(pkglibdir)/graphics
moduledatadir=$(pkglibdir)/data
+modulegraphicsdir=$(pkglibdir)/graphics
+moduleguidir=$(pkglibdir)/gui
+modulespeechdir=$(pkglibdir)/speech
+moduleosddir=$(pkglibdir)/osd
+modulevehicledir=$(pkglibdir)/vehicle
pkgdocdir=$(pkgdatadir)
xpmdir=$(pkgdatadir)/xpm
fi
AC_SUBST(GTK2_CFLAGS)
AC_SUBST(GTK2_LIBS)
+AM_CONDITIONAL(GUI_GTK, [test "x$gtk2_pkgconfig" = "xyes"])
+AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x$gtk2_pkgconfig" = "xyes"])
PKG_CHECK_MODULES(FREETYPE2, [freetype2], [freetype2_pkgconfig=yes], [freetype2_pkgconfig=no])
if test "x$freetype2_pkgconfig" = "xyes"; then
AC_SUBST(IMLIB2_CFLAGS)
AC_SUBST(IMLIB2_LIBS)
-AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd", AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
+AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd" speechd=yes, AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
AC_SUBST(SPEECHD_CFLAGS)
AC_SUBST(SPEECHD_LIBS)
+AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, [test "x$speechd" = "xyes"])
AC_CHECK_HEADER(
SDL/SDL.h,
AC_SUBST(OPENGL_LIBS)
AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" ])
-AM_CONDITIONAL(GUI_GTK, [test "x$gtk2_pkgconfig" = "xyes"])
AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes"])
-AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x$sdl" = "xyes"])
if test x"${USE_LIBGPS}" = xyes
then
- AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) LIBS="$LIBS -lgps", AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
+ AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps" gpsd=yes, AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
fi
+AC_SUBST(GPSD_CFLAGS)
+AC_SUBST(GPSD_LIBS)
+AM_CONDITIONAL(VEHICLE_GPSD, [test "x$gpsd" = "xyes"])
PYTHON_LIB=""
PYTHON_INC=""
AC_OUTPUT([
Makefile
src/Makefile
+src/binding/Makefile
src/data/Makefile
src/data/mg/Makefile
src/data/textfile/Makefile
src/data/garmin_img/Makefile
src/fib-1.1/Makefile
-src/gui/Makefile
-src/gui/gtk/Makefile
-src/gui/sdl/Makefile
src/graphics/Makefile
src/graphics/gtk_drawing_area/Makefile
src/graphics/opengl/Makefile
src/graphics/null/Makefile
+src/gui/Makefile
+src/gui/gtk/Makefile
+src/gui/sdl/Makefile
+src/osd/Makefile
+src/speech/Makefile
+src/speech/cmdline/Makefile
+src/speech/speech_dispatcher/Makefile
+src/vehicle/Makefile
+src/vehicle/file/Makefile
+src/vehicle/gpsd/Makefile
src/xpm/Makefile
])
struct navit *global_navit;
static void
+navit_debug(struct navit *this_)
+{
+#if 0
+#include "attr.h"
+#include "item.h"
+#include "search.h"
+ struct attr attr;
+ struct search_list *sl;
+ struct search_list_result *res;
+
+ debug_level_set("data_mg:town_search_get_item",1);
+ debug_level_set("data_mg:town_search_compare",1);
+ debug_level_set("data_mg:tree_search_next",1);
+ sl=search_list_new(this_->mapsets->data);
+ attr.type=attr_country_all;
+ attr.u.str="Deu";
+ search_list_search(sl, &attr, 1);
+ while (res=search_list_get_result(sl)) {
+ printf("country result\n");
+ }
+ attr.type=attr_town_name;
+ attr.u.str="U";
+ search_list_search(sl, &attr, 1);
+ while (res=search_list_get_result(sl)) {
+ printf("town result\n");
+ }
+ search_list_destroy(sl);
+#endif
+}
+
+static void
navit_show_roadbook(struct navigation *nav, void *data)
{
struct navigation_list *list;
}
}
global_navit=this_;
+ navit_debug(this_);
}
void