git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@503
ffa7fe5e-494d-0410-b361-
a75ebd5db220
AC_SUBST(NAVIT_CFLAGS)
AC_SUBST(NAVIT_LIBS)
+AC_CHECK_HEADER(
+ zlib.h,
+ AC_DEFINE(
+ [HAVE_ZLIB],
+ [],
+ Define to 1 if you have the <zlib.h> header file.
+ )
+ ZLIB_LIBS="-lz",
+ AC_MSG_WARN([*** no zlib.h\ -- reduced functionality of osm2navit])
+ )
+AC_SUBST(ZLIB_LIBS)
+
AC_ARG_ENABLE(gui-gtk, [ --disable-gui-gtk don't create gui gtk ], MODULE_GUI_GTK=$enableval, MODULE_GUI_GTK=yes)
if test "x$MODULE_GUI_GTK" = "xyes"; then
PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
AM_CPPFLAGS = -I$(top_srcdir)/src/fib-1.1 @NAVIT_CFLAGS@ -DPREFIX=\"@prefix@\" -DMODULE=\"navit\"
-bin_PROGRAMS = navit
+bin_PROGRAMS = navit osm2navit
pkgdata_DATA = navit.xml
param.h phrase.h plugin.h point.h plugin_def.h projection.h popup.h route.h profile.h search.h speech.h statusbar.h \
transform.h track.h util.h vehicle.h xmlconfig.h
+osm2navit_SOURCES = osm2navit.c item.c debug.c
+
navit_LDADD = @NAVIT_LIBS@ @GPSD_LIBS@ -Lfib-1.1 -lfib
+osm2navit_LDADD = @NAVIT_LIBS@ @ZLIB_LIBS@
+
samplemap: maps/$(SAMPLE_MAP).txt
maps/$(SAMPLE_MAP).osm: