Add:Core:New map type filter to filter other maps
[navit-package] / configure.in
1 AC_INIT(navit, 0.2.0)
2 SOURCE_MODE=svn
3
4 AM_INIT_AUTOMAKE
5 AM_CONFIG_HEADER(config.h)
6
7 AC_SUBST(SOURCE_MODE)
8 AM_CONDITIONAL(SOURCE_MODE_SVN, [test "x${SOURCE_MODE}" = "xsvn"])
9
10 if test "x${SOURCE_MODE}" = "xsvn" ; then
11         USE_MAINTAINER_MODE=yes
12 else
13         USE_MAINTAINER_MODE=no
14 fi
15
16 AC_DEFUN([AM_MAINTAINER_MODE],
17 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
18   dnl maintainer-mode is enabled by default (reason of inclusion of this function)
19   AC_ARG_ENABLE(maintainer-mode,
20 [  --enable-maintainer-mode  enable make rules and dependencies not useful
21                           (and sometimes confusing) to the casual installer],
22       USE_MAINTAINER_MODE=$enableval)
23   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
24   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
25   MAINT=$MAINTAINER_MODE_TRUE
26   AC_SUBST(MAINT)dnl
27 ]
28 )
29
30 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
31
32 AM_MAINTAINER_MODE
33
34
35 plugins=yes; plugins_reason=default
36 postgresql=yes; postgresql_reason=default
37 samplemap=yes; samplemap_reason=default
38 binding_dbus=yes; binding_dbus_reason=default
39 binding_python=yes; binding_python_reason=default
40 font_freetype=yes; font_freetype_reason=default
41 fontconfig=yes; fontconfig_reason=default
42 gui_gtk=no; gui_gtk_reason=default
43 gui_win32=no; gui_win32_reason=default
44 gui_internal=yes; gui_internal_reason=default
45 graphics_gd=no; graphics_gd_reason=default
46 graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
47 graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
48 graphics_opengl=yes; graphics_opengl_reason=default
49 graphics_sdl=yes; graphics_sdl_reason=default
50 graphics_win32=no; graphics_win32_reason=default
51 speech_android=no; speech_android_reason=default
52 speech_cmdline=yes; speech_cmdline_reason=default
53 speech_espeak=no; speech_espeak_reason=default
54 speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
55 vehicle_demo=yes; vehicle_demo_reason=default
56 vehicle_file=yes; vehicle_file_reason=default
57 vehicle_gpsd=yes; vehicle_gpsd_reason=default
58 vehicle_gypsy=yes; vehicle_gypsy_reason=default
59 vehicle_null=no; vehicle_null_reason=default
60 vehicle_wince=no; vehicle_wince_reason=default
61 vehicle_iphone=no; vehicle_iphone_reason=default
62 vehicle_android=no; vehicle_android_reason=default
63 graphics_android=no; graphics_android_reason=default
64
65 AC_CANONICAL_HOST
66 win32=no
67 win32ce=no
68 case $host_os in
69 wince|mingw32ce|cegcc)
70         win32=yes
71         win32ce=yes
72         AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
73         AC_DEFINE(HAVE_API_WIN32_CE, 1, [Have Windows CE API])
74         gui_win32=yes; gui_win32_reason="host_os is wince"
75         graphics_win32=yes; graphics_win32_reason="host_os is wince"
76         vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
77         speech_espeak=yes; speech_espeak_reason="host_os is wince"
78         support_libpng=yes
79         ;;
80 mingw32)
81         win32=yes
82         AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
83         AC_DEFINE(HAVE_API_WIN32, 1, [Have Windows API])
84         gui_win32=yes; gui_win32_reason="host_os is mingw32"
85         graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
86         speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
87         support_libpng=yes
88         LIBS="$LIBS -lwinmm"
89         ;;
90 linux*_android)
91         android=yes
92         AC_DEFINE(HAVE_API_ANDROID, 1, [Have Android API])
93         echo "void dl_unwind_find_exidx(void) {}" >crt0.c
94         $CC -c crt0.c
95         $AR r libg.a crt0.o
96         vehicle_android=yes; vehicle_android_reason="host_os is android"
97         graphics_android=yes; graphics_android_reason="host_os is android"
98         speech_android=yes; speech_android_reason="host_os is android"
99         MODULE_LDFLAGS="-Xcompiler -nostdlib"
100         ;;
101 esac
102 if test "x$win32" = "xyes"
103 then
104         NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
105         NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
106 fi
107
108
109 AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"])
110 AM_CONDITIONAL(SUPPORT_WIN32CE, [test "x$win32ce" = "xyes"])
111 AM_CONDITIONAL(SUPPORT_ANDROID, [test "x$android" = "xyes"])
112
113 if test "x$support_libpng" = "xyes"
114 then
115         NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
116         NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
117 fi
118 AM_CONDITIONAL(SUPPORT_LIBPNG, [test "x$support_libpng" = "xyes"])
119
120 AC_SUBST(MODULE_LDFLAGS)
121
122 LIBS="$LIBS -lm"
123 if test "$win32" == "no"; then
124         LIBS="$LIBS -rdynamic"
125 fi
126
127 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
128         [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
129
130 AC_USE_SYSTEM_EXTENSIONS
131
132 AC_PROG_OBJC
133 AC_PROG_CC
134 AC_PROG_OBJC
135 if eval "test x`uname` = xDarwin"; then
136         CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
137 fi
138 if eval "test x$GCC = xyes"; then
139         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
140 fi
141 AM_PROG_CC_C_O
142
143 AC_PROG_CXX
144 if eval "test x$GXX = xyes"; then
145         CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
146 fi
147
148 PKG_CHECK_EXISTS
149 if test "x${cross_compiling}" = "xyes"; then
150         samplemap="no";samplemap_reason="not supported for cross compiling"
151         binding_python="no";binding_python_reason="not supported for cross compiling"
152         postgresql="no";postgresql_reason="not supported for cross compiling"
153         AC_MSG_CHECKING([for a C compiler for build tools])
154         AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
155 else
156         CC_FOR_BUILD=$CC
157 fi
158 CCLD_FOR_BUILD="$CC_FOR_BUILD"
159 AC_SUBST(cross_compiling)
160 AC_SUBST(CC_FOR_BUILD)
161 AC_SUBST(CCLD_FOR_BUILD)
162
163 # Endianness
164 # defines WORDS_BIGENDIAN for big-endian systems
165 AC_C_BIGENDIAN
166
167 AC_ARG_ENABLE(variant, [  --enable-variant=something          set variant], NAVIT_VARIANT=$enableval)
168 AC_SUBST(NAVIT_VARIANT)
169
170 AC_ARG_ENABLE(cache-size, [  --enable-cache-size=size in bytes        set cache size], AC_DEFINE_UNQUOTED(CACHE_SIZE,[${enableval}], [Size of Cache in Bytes]))
171
172 AC_ARG_ENABLE(avoid-unaligned, [  --enable-avoid-unaligned          avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
173 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
174
175 AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
176 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
177
178 AC_ARG_ENABLE(transformation-roll, [  --enable-transformation-roll      add support for specifying roll angle in transformation], ENABLE_ROLL=$enableval, ENABLE_ROLL=no)
179 test x"${ENABLE_ROLL}" = xyes && AC_DEFINE(ENABLE_ROLL,[],Define to add support for specifying roll angle in transformation)
180
181 AC_ARG_ENABLE(hildon, [  --disable-hildon              build without maemo/hildon support], enable_hildon=$enableval, enable_hildon=yes)
182 if test "x${enable_hildon}" = "xyes" ; then
183         PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, , [
184                 AC_MSG_RESULT(no)
185                 enable_hildon=no
186         ])
187         PKG_CHECK_MODULES(GPSBT, gpsbt, [
188                 AC_DEFINE(HAVE_GPSBT, 1, [Have the gpsbt library])
189                 AC_SUBST(GPSBT_CFLAGS)
190                 AC_SUBST(GPSBT_LIBS)
191                 ], [
192                 AC_MSG_RESULT(no)
193         ])
194         if test x"${enable_hildon}" = xyes ; then
195                 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
196                 AC_SUBST(HILDON_CFLAGS)
197                 AC_SUBST(HILDON_LIBS)
198         fi
199 fi
200 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
201
202 AC_ARG_ENABLE(garmin, [  --disable-garmin             disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
203
204 # samplemap
205 AC_PATH_PROG(_PATH_BZCAT,[bzcat])
206 if test "x${_PATH_BZCAT}" = "x" ; then
207         samplemap=no; samplemap_reason="bzcat missing"
208 fi
209 AC_ARG_ENABLE(samplemap, [  --disable-samplemap             don't build the samplemap], samplemap=$enableval;samplemap_reason="configure parameter")
210 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
211
212 AC_ARG_ENABLE(fastmath, [  --disable-fastmath             don't build with fastmath], fastmath=$enableval, fastmath=yes)
213 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
214
215 if test x"$fastmath" = xyes; then
216         if eval "test x$GCC = xyes"; then
217                 CFLAGS="$CFLAGS -ffast-math"
218         fi
219 fi
220
221 X_CFLAGS="-I$x_includes"
222 AS_IF([test -n "$ac_x_libraries"], [X_LIBS="-L$ac_x_libraries"])
223
224 # glib
225 AC_ARG_ENABLE(glib, [  --disable-glib             don't build with external glib], glib=$enableval, glib=yes)
226 if test x"${glib}" = "xyes"; then
227         PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0], [glib=yes],[glib=no])
228 fi
229 if test "x${glib}" = "xyes"; then
230         AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if you have (external) glib library])
231 else
232         GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
233         GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
234 fi
235
236 # gmodule
237 AC_ARG_ENABLE(gmodule, [  --disable-gmodule             don't build with gmodule], gmodule=$enableval, gmodule=yes)
238 if test x"${gmodule}" = "xyes"; then
239         PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule=yes], [gmodule=no])
240 fi
241 if test "x${gmodule}" = "xyes"; then
242         AC_DEFINE(HAVE_GMODULE, 1, [Define to 1 if you have gmodule])
243 else
244         AC_CHECK_LIB(dl, dlopen,
245                 [plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if you have dlopen])],          
246                 [plugins="no"; plugins_reason="package gmodule and dlopen missing"]
247         )
248 fi
249 # plugins
250 AC_ARG_ENABLE(plugins,  [  --disable-plugins          disable plugins], [ plugins=$enableval;plugin_reason="configure parameter" ])
251 if test "x${plugins}" = "xyes"; then
252         AC_ENABLE_SHARED
253         AC_DISABLE_STATIC
254         AC_DEFINE(
255                 [USE_PLUGINS],
256                 [],
257                 Define to 1 if you have plugins.
258         )
259 else
260         AC_DISABLE_SHARED
261         AC_ENABLE_STATIC
262 fi
263 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
264 AC_PROG_LIBTOOL
265
266 AM_CONDITIONAL(EVENT_GLIB, [test "x$glib" = "xyes"])
267 AM_CONDITIONAL(SUPPORT_GLIB, [test "x$glib" = "xno"])
268 AM_CONDITIONAL(SUPPORT_EZXML, [test "x$glib" = "xno"])
269 AM_CONDITIONAL(MAP_POI_GEODOWNLOAD, [test "x$glib" = "xyes"])
270
271 AC_CHECK_HEADER(
272         zlib.h,
273         AC_DEFINE(
274                 [HAVE_ZLIB],
275                 [],
276                 Define to 1 if you have the <zlib.h> header file.
277         )
278         ZLIB_LIBS="-lz"
279         zlib=yes,
280         ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
281         ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
282         zlib=no
283 )
284 AM_CONDITIONAL(SUPPORT_ZLIB, [test "x$zlib" = "xno"])
285 AC_SUBST(ZLIB_CFLAGS)
286 AC_SUBST(ZLIB_LIBS)
287
288 # gtk
289 PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
290 if test "x$gtk2_pkgconfig" = "xyes"; then
291         AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
292         graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
293         gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
294 fi
295
296 # fsync
297 AC_MSG_CHECKING(for fsync)
298 AC_TRY_LINK([#include <unistd.h>], [fsync(0);],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_FSYNC, 1, [Define to 1 if you have the `fsync' function.]),AC_MSG_RESULT(no))
299
300 # system
301 AC_MSG_CHECKING(for system)
302 AC_TRY_LINK([#include <stdlib.h>], [system("/bin/true");],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYSTEM, 1, [Define to 1 if you have the `system' function.]),speech_cmdline=no; speech_cmdline_reason="not supported without system()"; AC_MSG_RESULT(no))
303
304 AC_MSG_CHECKING(for CreateProcess)
305 AC_TRY_LINK([#include <windows.h>], [CreateProcess(NULL,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL);],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_CREATEPROCESS, 1, [Define to 1 if you have the `CreateProcess' function.]) speech_cmdline=yes; speech_cmdline_reason="CreateProcess exists", AC_MSG_RESULT(no))
306
307 AC_ARG_ENABLE(graphics-sdl, [  --disable-graphics-sdl             don't create graphics sdl], graphics_sdl=$enableval;graphics_sdl_reason="configure parameter")
308
309 if test "x${graphics_sdl}" = "xyes" ; then
310         PKG_CHECK_MODULES(SDL, 
311                           [sdl], 
312                           [graphics_sdl="yes"
313                            graphics_sdl_reason="sdl present"] , 
314                           [graphics_sdl="no"
315                            graphics_sdl_reason="sdl not available"]
316                          )
317         AC_SUBST(SDL_CFLAGS)
318         AC_SUBST(SDL_LIBS)
319 fi
320 if test "x${graphics_sdl}" = "xyes" ; then
321         save_CPPFLAGS=$CPPFLAGS
322         CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
323         AC_CHECK_HEADER(SDL_image.h,SDL_IMAGE_LIBS=-lSDL_image,graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing")
324         AC_SUBST(SDL_IMAGE_LIBS)
325         CPPFLAGS=$save_CPPFLAGS
326 fi
327 if test "x${graphics_sdl}" = "xyes" ; then
328         AC_DEFINE(USE_GRAPHICS_SDL, 1, [Build with graphics sdl])
329 fi
330 AM_CONDITIONAL(USE_GRAPHICS_SDL, test "x${graphics_sdl}" = "xyes")
331
332 AC_ARG_ENABLE(postgresql, [  --disable-postgresql             don't add postgresql support to osm2navit], postgresql=$enableval;postgresql_reason="configure parameter")
333 if test "x${postgresql}" = "xyes" ; then
334         if test -z "$PG_CONFIG"; then
335             AC_PATH_PROG([PG_CONFIG], [pg_config], [])
336         fi
337         AC_MSG_CHECKING([for PostgreSQL libraries with $PG_CONFIG])
338         if test ! -x "$PG_CONFIG"; then
339             if test "x${PG_CONFIG}" = "x" ; then
340                  postgresql_reason="$PG_CONFIG not executable"
341             else
342                  postgresql_reason="pg_config missing"
343             fi
344             postgresql=no 
345             AC_MSG_RESULT([no])
346         else
347             POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
348             POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
349             AC_DEFINE(HAVE_POSTGRESQL, 1, [Postgresql libraries available])
350             AC_SUBST(POSTGRESQL_CFLAGS)
351             AC_SUBST(POSTGRESQL_LIBS)
352             AC_MSG_RESULT([yes])
353         fi 
354 fi
355 AM_CONDITIONAL(HAVE_POSTGRESQL, test "x${postgresql}" = "xyes")
356 # font
357 # freetype
358 AC_ARG_ENABLE(font-freetype, [  --disable-font-freetype             don't add freetype support], font_freetype=$enableval;font_freetype_reason="configure parameter")
359 if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
360         PKG_CHECK_MODULES(FREETYPE2, [freetype2], , [font_freetype=no;font_freetype_reason="Package freetype2 missing"])
361 fi
362 AC_SUBST(FREETYPE2_CFLAGS)
363 AC_SUBST(FREETYPE2_LIBS)
364 AM_CONDITIONAL(FONT_FREETYPE, test "x${font_freetype}" = "xyes")
365
366 AC_ARG_ENABLE(fontconfig, [  --disable-fontconfig             don't add fontconfig support], fontconfig=$enableval;fontconfig_reason="configure parameter")
367 if test "x${fontconfig}" = "xyes"; then
368         PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig=yes], [fontconfig=no])
369 fi
370 if test "x$fontconfig" = "xyes"; then
371    AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
372 fi
373 AC_SUBST(FONTCONFIG_CFLAGS)
374 AC_SUBST(FONTCONFIG_LIBS)
375
376 AM_CONDITIONAL(FONTS, test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes")
377
378 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
379 if test "x$imlib2_pkgconfig" = "xyes"; then
380    AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
381 fi
382 AC_SUBST(IMLIB2_CFLAGS)
383 AC_SUBST(IMLIB2_LIBS)
384
385
386
387 AC_ARG_ENABLE(gui-sdl, [  --disable-gui-sdl             don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
388 if test "x$MODULE_GUI_SDL" = "xyes"; then
389         AC_CHECK_HEADER(
390                 SDL/SDL.h,
391                 AC_DEFINE(
392                         [HAVE_LIBSDL],
393                         [],
394                         Define to 1 if you have the <SDL/SDL.h> header file.
395                         )
396                         SDL_LIBS="-lSDL"
397                         sdl=yes,
398                 AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
399         )
400 fi
401
402 AC_CHECK_HEADER(
403         X11/Xmu/Xmu.h,
404         AC_DEFINE(
405                 [HAVE_XMU],
406                 [],
407                 Define to 1 if you have the <X11/Xmu/Xmu.h> header file.
408                 )
409                 xmu=yes,
410         AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
411 )
412
413 AC_ARG_ENABLE(graphics-opengl, [  --disable-graphics-opengl      disable graphics type OpenGL], graphics_opengl=$enableval;graphics_opengl_reason="configure parameter")
414 if test "x${graphics_opengl}" = "xyes" ; then
415
416 AC_CHECK_HEADER(
417         GL/gl.h,
418         AC_DEFINE(
419                 [HAVE_OPENGL],
420                 [],
421                 Define to 1 if you have the <GL/gl.h> header file.
422                 )
423                 OPENGL_LIBS="$X_LIBS -lGL -lGLU"
424                 opengl=yes,
425         AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled];graphics_opengl=no;graphics_opengl_reason="Headers missing")
426 )
427
428 AC_CHECK_HEADER(
429         GL/glut.h,
430         AC_DEFINE(
431                 [HAVE_GLUT],
432                 [],
433                 Define to 1 if you have the <GL/glut.h> header file.
434                 )
435                 glut=yes,
436         AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
437 )
438
439 AC_SUBST(OPENGL_CFLAGS)
440 AC_SUBST(OPENGL_LIBS)
441
442 AC_CHECK_HEADER(
443         GL/glc.h,
444         AC_DEFINE(
445                 [HAVE_GLC],
446                 [],
447                 Define to 1 if you have the <GL/glc.h> header file.
448                 )
449                 GLC_LIBS="-lGLC"
450                 glc=yes,
451         AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
452 )
453 AC_SUBST(GLC_CFLAGS)
454 AC_SUBST(GLC_LIBS)
455 fi
456
457 AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
458 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
459
460
461 if test x"${USE_GARMIN}" = xyes
462 then
463         # check for libgarmin
464         PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
465         AC_SUBST(LIBGARMIN_CFLAGS)
466         AC_SUBST(LIBGARMIN_LIBS)
467 fi
468         AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
469
470 ## binding
471 # python
472 AC_ARG_ENABLE(binding-python, [  --disable-binding-python             don't create binding python], binding_python=$enableval;binding_python_reason="configure parameter")
473 if test "x${binding_python}" = "xyes"; then
474         AC_PATH_PROG(_PATH_PYTHON,[python])
475         dnl Libraries and flags for embedded Python.
476         dnl FIXME: I wish there was a less icky way to get this.
477         if test "x${_PATH_PYTHON}" != "x" ; then
478                 AC_MSG_CHECKING(for Python linkage)
479                 AC_PATH_PROG([PYTHONCONFIG], [python-config], [])
480                 if test "x${PYTHONCONFIG}" = "x" ; then
481                         py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
482                         py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
483                         py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
484                         py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
485                         PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
486                         if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
487                                 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
488                                 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
489                                 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
490                                 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
491                                 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
492                                 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
493                                 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
494                                 AC_MSG_RESULT($py_libdir)
495                         else
496                                 binding_python="no"
497                                 binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
498                         fi
499
500                 else
501                         PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
502                         PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
503                 fi
504         else
505                 binding_python="no"
506                 binding_python_reason="python executable missing"
507         fi
508 fi
509 if test "x${binding_python}" = xyes ; then
510         AC_DEFINE(USE_BINDING_PYTHON, 1, [Build with binding python])
511 fi
512 AC_SUBST(PYTHON_CFLAGS)
513 AC_SUBST(PYTHON_LIBS)
514 AM_CONDITIONAL(BINDING_PYTHON, test "x${binding_python}" = "xyes")
515
516 # dbus
517 AC_ARG_ENABLE(binding-dbus,   [  --disable-binding-dbus               don't create binding dbus], binding_dbus=$enableval;binding_dbus_reason="configure parameter")
518 if test "x${binding_dbus}" = "xyes" ; then
519         PKG_CHECK_MODULES(DBUS, [dbus-glib-1], ,binding_dbus=no)
520 fi
521 if test "x${binding_dbus}" = "xyes" ; then
522         AC_DEFINE(USE_BINDING_DBUS, 1, [Build with binding dbus])
523 fi
524 AC_SUBST(DBUS_CFLAGS)
525 AC_SUBST(DBUS_LIBS)
526 AM_CONDITIONAL(BINDING_DBUS, test "x${binding_dbus}" = "xyes")
527 AC_ARG_WITH(dbus-service-dir, [ --with-dbus-service-dir   specify where the dbus service dir resides], DBUS_SERVICE_DIR=$withval, DBUS_SERVICE_DIR="$datarootdir/dbus-1/services")
528 AC_SUBST(DBUS_SERVICE_DIR)
529
530 # svg
531 AC_ARG_ENABLE(svg, [  --disable-svg        disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes)
532 AC_ARG_ENABLE(svg2png, [  --disable-svg2png        disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes)
533 AC_ARG_ENABLE(svg2png-scaling, [  --enable-svg2png-scaling   enable conversion of svgs to pngs with specified sizes], SVG2PNG_SCALES=$enableval, SVG2PNG_SCALES="8 16 32 48 96")
534 AC_ARG_ENABLE(svg2png-scaling-flag, [  --enable-svg2png-scaling-flag   enable conversion of flag svgs to pngs with specified sizes], SVG2PNG_SCALES_FLAG=$enableval, SVG2PNG_SCALES_FLAG="8 16 32 48 96")
535 AC_ARG_ENABLE(svg2png-scaling-nav, [  --enable-svg2png-scaling-nav   enable conversion of nav svgs to pngs with specified sizes], SVG2PNG_SCALES_NAV=$enableval, SVG2PNG_SCALES_NAV="8 16 32 48 96")
536 AC_ARG_WITH(svg2png-use-convert, [  --with-svg2png-use-convert   use imagemagick's convert for png creation], SVG2PNG_CONVERTER="convert")
537 AC_ARG_WITH(svg2png-use-rsvg-convert, [  --with-svg2png-use-rsvg-convert   use librsvg's rsvg-convert for png creation], SVG2PNG_CONVERTER="rsvg-convert")
538 AC_ARG_WITH(svg2png-use-inkscape, [  --with-svg2png-use-inkscape   use inkscapes internal convert routines for png creation], SVG2PNG_CONVERTER="inkscape")
539 AC_ARG_WITH(svg2png-use-ksvgtopng4, [  --with-svg2png-use-ksvgtopng4   use kde4's ksvgtopng4 for png creation], SVG2PNG_CONVERTER="ksvgtopng4")
540 AC_ARG_WITH(svg2png-use-ksvgtopng, [  --with-svg2png-use-ksvgtopng   use kde3's convert for png creation], SVG2PNG_CONVERTER="ksvgtopng")
541 if test "x${enable_svg2png}" = "xyes" ; then
542     if test "x${SVG2PNG_CONVERTER}" = "x"; then
543         SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
544     fi
545     AC_PATH_PROGS([SVG2PNG], ${SVG2PNG_CONVERTER}, [none])
546     if test "x${SVG2PNG}" = "xnone"; then
547         enable_svg2png="no"
548     fi
549 fi
550 AC_SUBST(SVG2PNG)
551 AC_SUBST(SVG2PNG_SCALES)
552 AC_SUBST(SVG2PNG_SCALES_FLAG)
553 AC_SUBST(SVG2PNG_SCALES_NAV)
554 AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x")
555 AM_CONDITIONAL(USE_SVG2PNG_SCALES_FLAG, test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x")
556 AM_CONDITIONAL(USE_SVG2PNG_SCALES_NAV, test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x")
557 AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes")
558 AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes")
559
560 # XSLTS
561 AC_ARG_WITH(xslts, [  --with-xslts   enable processing of navit.xml with given xslt scripts], XSLTS=$withval, XSLTS="")
562 AC_SUBST(XSLTS)
563
564 # NLS
565
566 AC_ARG_ENABLE(nls,
567   [  --disable-nls        disable Native Language Support ( gettext/libintl )],
568    enable_nls=$enableval, enable_nls=yes)
569
570
571 INTLIBS=""
572 MOFILES=""
573 POFILES=""
574 POIFILES=""
575 LINGUAS=""
576
577 if test "x$enable_nls" = "xyes"; then
578
579   AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],[INTLIBS="-lintl" HAVEGETTEXT="yes"])
580   AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
581   AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
582   AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
583
584   if test "$XGETTEXT" != ""; then 
585     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
586         echo "xgettext isn't GNU version"
587         XGETTEXT=""
588     fi
589   fi
590
591   if test "$XGETTEXT" != "" ; then
592      PO=""
593      if test "$LINGUAS" = ""; then
594            ling=` (cd $srcdir/po; /bin/ls *.po.in) `
595            for l in $ling; do
596                 lcode=`basename $l .po.in`
597                 LINGUAS="$LINGUAS$lcode "
598            done
599     fi
600     AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
601     echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
602   else
603    LINGUAS=""
604    PO=""
605    echo "xgettext doesn't exist; will not build i18n support"
606    enable_nls=no
607  fi
608  for lang in $LINGUAS; do
609     MOFILES="$MOFILES $lang.mo"
610  done
611  for lang in $LINGUAS; do
612     POFILES="$POFILES $lang.po"
613  done
614  for lang in $LINGUAS; do
615     POIFILES="$POIFILES $lang.po.in"
616  done
617
618 AC_SUBST(INTLIBS)
619 AC_SUBST(MOFILES)
620 AC_SUBST(POFILES)
621 AC_SUBST(POIFILES)
622 AM_GNU_GETTEXT_VERSION
623 AM_GNU_GETTEXT(no-libtool, need-ngettext, \$(top_builddir)/intl/)
624 AC_SUBST(LIBINTL)
625 AC_SUBST(LTLIBINTL)
626 if test x"$LIBINTL" != "x" ;then
627         CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
628 fi
629
630 fi
631 AM_CONDITIONAL(ENABLE_NLS, [test "x$enable_nls" = "xyes"])
632 AC_CHECK_HEADER(
633         byteswap.h,
634         AC_DEFINE(
635                 [HAVE_BYTESWAP_H],
636                 [1],
637                 [Define to 1 if you have byteswap.h],
638                 )
639                 ,
640 )
641
642 PACKAGE=navit
643 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
644 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
645 AC_SUBST(PACKAGE)
646 AC_SUBST(VERSION)
647
648 AC_CHECK_HEADER(wordexp.h,wordexp_h=yes,wordexp_h=no;NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/wordexp";WORDEXP_LIBS="-L\$(top_builddir)/navit/support/wordexp -lsupport_wordexp")
649 AM_CONDITIONAL(SUPPORT_WORDEXP, [test "x$wordexp_h" = "xno"])
650
651 support_libc=no
652 AC_ARG_ENABLE(support_libc, [  --enable-support-libc enable builtin mini libc ], support_libc=$enableval)
653 AM_CONDITIONAL(SUPPORT_LIBC, [test "x$support_libc" = "xyes"])
654 if test "x$support_libc" = "xyes"; then
655         CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
656 fi
657
658 ## graphics
659 # android
660 AC_ARG_ENABLE(graphics-android, [  --disable-graphics-android            disable graphics type android], graphics_android=$enableval;graphics_android_reason="configure parameter")
661 AM_CONDITIONAL(GRAPHICS_ANDROID, test "x${graphics_android}" = "xyes")
662 # gd
663 AC_ARG_ENABLE(graphics-gd, [  --enable-graphics-gd                enable graphics type gd], graphics_gd=$enableval;graphics_gd_reason="configure parameter")
664 if test "x${graphics_gd}" = "xyes" ; then
665         if test -z "$GDLIB_CONFIG"; then
666             AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config], [])
667         fi
668         AC_MSG_CHECKING([for gdlib with $GDLIB_CONFIG])
669         if test ! -x "$GDLIB_CONFIG"; then
670             if test "x${GDLIB_CONFIG}" = "x" ; then
671                  graphics_gd_reason="$GDLIB_CONFIG not executable"
672             else
673                  graphics_gd_reason="gdlib-config missing"
674             fi
675             graphics_gd=no 
676             AC_MSG_RESULT([no])
677         else
678             GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
679             GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
680             AC_SUBST(GD_CFLAGS)
681             AC_SUBST(GD_LIBS)
682             AC_MSG_RESULT([yes])
683         fi 
684 fi
685 AM_CONDITIONAL(GRAPHICS_GD, test "x${graphics_gd}" = "xyes")
686 # gtk_drawing_area
687 AC_ARG_ENABLE(graphics-gtk-drawing-area, [  --disable-graphics-gtk-drawing-area disable graphics type gtk_drawing_area], graphics_gtk_drawing_area=$enableval;graphics_gtk_drawing_area_reason="configure parameter")
688 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x${graphics_gtk_drawing_area}" = "xyes"])
689 # win32
690 AC_ARG_ENABLE(graphics-win32, [  --disable-graphics-win32            disable graphics type win32], graphics_win32=$enableval;graphics_win32_reason="configure parameter")
691 AM_CONDITIONAL(GRAPHICS_WIN32, test "x${graphics_win32}" = "xyes")
692 # qt_qpainter
693 AC_ARG_ENABLE(graphics-qt-qpainter, [  --disable-graphics-qt-qpainter      disable graphics type qt-qpainter], graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter")
694 if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
695         PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore], ,graphics_qt_qpainter=no,graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing")
696         if test "x${graphics_qt_qpainter}" = "xno"; then
697                 PKG_CHECK_MODULES(QT_GUI, [qt-mt],graphics_qt_qpainter=yes,graphics_qt_qpainter_reason="Package qt-mt present")
698         fi
699 fi
700 if test "x${graphics_qt_qpainter}" = "xyes" ; then
701         AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
702         MOC=`$PKG_CONFIG QtGui --variable=moc_location`
703         if test "x${MOC}" = "x"; then
704                 AC_CHECK_PROG(MOC, moc, moc)
705         fi
706         AC_SUBST(MOC)
707 fi
708 AC_SUBST(QT_GUI_CFLAGS)
709 AC_SUBST(QT_GUI_LIBS)
710 AM_CONDITIONAL(GRAPHICS_QT_QPAINTER, test "x${graphics_qt_qpainter}" = "xyes")
711
712 ## gui
713 # gtk
714 AC_ARG_ENABLE(gui-gtk, [  --disable-gui-gtk                   disable gui type gtk ], gui_gtk=$enableval)
715 AM_CONDITIONAL(GUI_GTK, [test "x${gui_gtk}" = "xyes"])
716 # internal
717 AC_ARG_ENABLE(gui-internal, [  --disable-gui-internal              disable gui type internal], gui_internal=$enableval;gui_internal_reason="configure parameter")
718 AM_CONDITIONAL(GUI_INTERNAL, test "x${gui_internal}" = "xyes")
719 # win32
720 AC_ARG_ENABLE(gui-win32, [  --disable-gui-win32                 disable gui type win32], gui_win32=$enableval;gui_win32_reason="configure parameter")
721 AM_CONDITIONAL(GUI_WIN32, test "x${gui_win32}" = "xyes")
722
723 ## speech
724 # android
725 AC_ARG_ENABLE(speech-android, [  --disable-speech-android            disable speech type android], speech_android=$enableval;speech_android_reason="configure parameter")
726 AM_CONDITIONAL(SPEECH_ANDROID, test "x${speech_android}" = "xyes")
727 # cmdline
728 AC_ARG_ENABLE(speech-cmdline, [  --disable-speech-cmdline            disable speech type cmdline], speech_cmdline=$enableval;speech_cmdline_reason="configure parameter")
729 AM_CONDITIONAL(SPEECH_CMDLINE, test "x${speech_cmdline}" = "xyes")
730 # espeak
731 AC_ARG_ENABLE(speech-espeak, [  --disable-speech-espeak            disable speech type espeak], speech_espeak=$enableval;speech_espeak_reason="configure parameter")
732 AM_CONDITIONAL(SPEECH_ESPEAK, test "x${speech_espeak}" = "xyes")
733 # speech-dispatcher
734 AC_ARG_ENABLE(speech-speech-dispatcher, [  --disable-speech-speech-dispatcher  disable speech type speech-dispatcher], speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter")
735 if test "x$speech_speech_dispatcher" = "xyes"; then
736         AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd",  speech_speech_dispatcher=no; speech_speech_dispatcher_reason="libspeechd.h missing")
737 fi
738 AC_SUBST(SPEECHD_CFLAGS)
739 AC_SUBST(SPEECHD_LIBS)
740 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, test "x${speech_speech_dispatcher}" = "xyes")
741 AM_CONDITIONAL(SUPPORT_ESPEAK, test "x${support_espeak}" = "xyes")
742
743 ## vehicle
744 # android
745 AC_ARG_ENABLE(vehicle-android, [  --disable-vehicle-android             disable vehicle type android], vehicle_android=$enableval;vehicle_android_reason="configure parameter")
746 AM_CONDITIONAL(VEHICLE_ANDROID, test "x${vehicle_android}" = "xyes")
747 # demo
748 AC_ARG_ENABLE(vehicle-demo, [  --disable-vehicle-demo              disable vehicle type demo], vehicle_demo=$enableval;vehicle_demo_reason="configure parameter")
749 AM_CONDITIONAL(VEHICLE_DEMO, test "x${vehicle_demo}" = "xyes")
750 # file
751 AC_ARG_ENABLE(vehicle-file, [  --disable-vehicle-file              disable vehicle type file], vehicle_file=$enableval;vehicle_file_reason="configure parameter")
752 AM_CONDITIONAL(VEHICLE_FILE, test "x${vehicle_file}" = "xyes")
753 # gpsd
754 AC_ARG_ENABLE(vehicle-gpsd, [  --disable-vehicle-gpsd              disable vehicle type gpsd], vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter")
755 if test "x${vehicle_gpsd}" = xyes
756 then
757         AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps", vehicle_gpsd=no; vehicle_gpsd_reason="no gps.h" )
758 fi
759 AC_SUBST(GPSD_CFLAGS)
760 AC_SUBST(GPSD_LIBS)
761 AM_CONDITIONAL(VEHICLE_GPSD, [test "x${vehicle_gpsd}" = "xyes"])
762 # gypsy
763 AC_ARG_ENABLE(vehicle-gypsy,[  --disable-vehicle-gypsy             disable vehicle type gypsy], vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter")
764 if test "x${vehicle_gypsy}" = "xyes"
765 then
766         PKG_CHECK_MODULES(GYPSY, gypsy, ,vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing")
767 fi
768 AC_SUBST(GYPSY_CFLAGS)
769 AC_SUBST(GYPSY_LIBS)
770 AM_CONDITIONAL(VEHICLE_GYPSY, test "x${vehicle_gypsy}" = "xyes")
771 # null
772 AC_ARG_ENABLE(vehicle-null, [  --enable-vehicle-null             enable vehicle type null], vehicle_null=$enableval;vehicle_null_reason="configure parameter")
773 AM_CONDITIONAL(VEHICLE_NULL, test "x${vehicle_null}" = "xyes")
774 # wince
775 AC_ARG_ENABLE(vehicle-wince, [  --disable-vehicle-wince             disable vehicle type wince], vehicle_wince=$enableval;vehicle_wince_reason="configure parameter")
776 AM_CONDITIONAL(VEHICLE_WINCE, test "x${vehicle_wince}" = "xyes")
777 # iphone
778 AC_ARG_ENABLE(vehicle-iphone, [  --disable-vehicle-iphone              disable vehicle type iphone], vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter")
779 AM_CONDITIONAL(VEHICLE_IPHONE, test "x${vehicle_iphone}" = "xyes")
780 if test "x${vehicle_iphone}" = "xyes"
781 then
782         IPHONE_LIBS=-Wl,-framework,CoreLocation
783 fi
784 AC_SUBST(IPHONE_CFLAGS)
785 AC_SUBST(IPHONE_LIBS)
786 NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
787 NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
788 AC_SUBST(NAVIT_CFLAGS)
789 AC_SUBST(NAVIT_LIBS)
790 AC_SUBST(WORDEXP_LIBS)
791 AC_SUBST(WINDRES)
792
793 AC_CONFIG_FILES([
794 Makefile
795 navit/Makefile
796 navit/binding/Makefile
797 navit/binding/python/Makefile
798 navit/binding/dbus/Makefile
799 navit/map/Makefile
800 navit/map/mg/Makefile
801 navit/map/textfile/Makefile
802 navit/map/shapefile/Makefile
803 navit/map/filter/Makefile
804 navit/map/binfile/Makefile
805 navit/map/garmin/Makefile
806 navit/map/poi_geodownload/Makefile
807 navit/map/poi_geodownload/libmdb/Makefile
808 navit/map/poi_geodownload/libmdb/include/Makefile
809 navit/fib-1.1/Makefile
810 navit/font/Makefile
811 navit/font/freetype/Makefile
812 navit/fonts/Makefile
813 navit/graphics/Makefile
814 navit/graphics/android/Makefile
815 navit/graphics/gd/Makefile
816 navit/graphics/gtk_drawing_area/Makefile
817 navit/graphics/opengl/Makefile
818 navit/graphics/null/Makefile
819 navit/graphics/sdl/Makefile
820 navit/graphics/qt_qpainter/Makefile
821 navit/graphics/win32/Makefile
822 navit/gui/Makefile
823 navit/gui/gtk/Makefile
824 navit/gui/internal/Makefile
825 navit/gui/win32/Makefile
826 navit/osd/Makefile
827 navit/osd/core/Makefile
828 navit/speech/Makefile
829 navit/speech/android/Makefile
830 navit/speech/cmdline/Makefile
831 navit/speech/espeak/Makefile
832 navit/speech/speech_dispatcher/Makefile
833 navit/support/Makefile
834 navit/support/espeak/Makefile
835 navit/support/ezxml/Makefile
836 navit/support/glib/Makefile
837 navit/support/libc/Makefile
838 navit/support/libpng/Makefile
839 navit/support/win32/Makefile
840 navit/support/wordexp/Makefile
841 navit/support/zlib/Makefile
842 navit/vehicle/Makefile
843 navit/vehicle/android/Makefile
844 navit/vehicle/file/Makefile
845 navit/vehicle/gpsd/Makefile
846 navit/vehicle/gypsy/Makefile
847 navit/vehicle/null/Makefile
848 navit/vehicle/demo/Makefile
849 navit/vehicle/wince/Makefile
850 navit/vehicle/iphone/Makefile
851 navit/xpm/Makefile
852 navit/maps/Makefile
853 intl/Makefile
854 po/Makefile
855 ])
856 #src/data/garmin_img/Makefile
857
858 AC_OUTPUT
859
860
861 echo ""
862 echo ""
863 echo "Summary of your installation :"
864 # FIXME : maybe elaborate missing dependencies
865 if test x"$sdl" != xyes
866         then
867         sdl_failures="(libsdl maybe?) "
868 fi
869 if test x"$xmu" != xyes
870         then                
871         sdl_failures=$sdl_failures"libxmu "
872 fi        
873 if test x"$glut" != xyes
874        then
875         sdl_failures=$sdl_failures"glut "
876 fi
877 if test x"$glc" != xyes
878         then
879         sdl_failures=$sdl_failures"quesoglc "
880 fi
881 if test -z "$sdl_failures"
882         then
883         echo "OpenGL gui  : ENABLED, with $CEGUI_LIBS"
884         else
885                  echo "OpenGL gui  : DISABLED : you are missing $sdl_failures"
886 fi
887 if test x"$enable_hildon" = xyes
888         then
889         echo "Maemo/Hildon: ENABLED"
890         else
891         echo "Maemo/Hildon: DISABLED"
892 fi
893 if test x"${USE_GARMIN}" = xyes
894         then
895         if test "x$use_libgarmin" = "xyes"
896                 then
897                 echo "Garmin IMG  : ENABLED"
898                 else
899                 echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
900         fi
901         else 
902                 echo "Garmin IMG  : DISABLED (you requested it)"
903 fi
904
905 if test x"$LIBINTL" = "x" ;then
906         nls_libs="system gettext support"
907 else
908         nls_libs="$LIBINTL"
909 fi
910 echo "Plugins:             $plugins ($plugins_reason)"
911 echo "Postgresql:          $postgresql ($postgresql_reason)"
912 echo "Samplemap:           $samplemap ($samplemap_reason)"
913 echo "NLS Support:         $enable_nls ($nls_libs)"
914 echo "Font renderers:"
915 echo "  freetype:          $font_freetype ($font_freetype_reason)"
916 echo "Graphics types:"
917 echo "  android:  $graphics_android ($graphics_android_reason)"
918 echo "  gtk_drawing_area:  $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
919 echo "  qt_qpainter:       $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
920 echo "  win32:             $graphics_win32 ($graphics_win32_reason)"
921 echo "  OpenGL:            $graphics_opengl ($graphics_opengl_reason)"
922 echo "  gd:                $graphics_gd ($graphics_gd_reason)"
923 echo "  sdl:               $graphics_sdl ($graphics_sdl_reason)"
924
925 echo "GUI types:"
926 echo "  gtk:               $gui_gtk ($gui_gtk_reason)"
927 echo "  internal:          $gui_internal ($gui_internal_reason)"
928 echo "  win32:             $gui_win32 ($gui_win32_reason)"
929
930 echo "Bindings:"
931 echo "  dbus:              $binding_dbus ($binding_dbus_reason)"
932 echo "  python:            $binding_python ($binding_python_reason)"
933
934 echo "Speech types:"
935 echo "  android:           $speech_android ($speech_android_reason)"
936 echo "  cmdline:           $speech_cmdline ($speech_cmdline_reason)"
937 echo "  espeak:            $speech_espeak ($speech_espeak_reason)"
938 echo "  speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
939
940 echo "Vehicle types:"
941 echo "  android:           $vehicle_android ($vehicle_android_reason)"
942 echo "  demo:              $vehicle_demo ($vehicle_demo_reason)"
943 echo "  file:              $vehicle_file ($vehicle_file_reason)"
944 echo "  gpsd:              $vehicle_gpsd ($vehicle_gpsd_reason)"
945 echo "  gypsy:             $vehicle_gypsy ($vehicle_gypsy_reason)"
946 echo "  null:              $vehicle_null ($vehicle_null_reason)"
947 echo "  wince:             $vehicle_wince ($vehicle_wince_reason)"
948 echo "  iphone:            $vehicle_iphone ($vehicle_iphone_reason)"
949
950 if  test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes"
951 then
952         echo ""
953         echo "" 
954         echo "*** WARNING! you have no gui that can be built! ***"
955         echo "Please install the dependency for at least gtk or sdl gui"
956         echo "For more details, see the wiki at http://wiki.navit-project.org/"
957         echo "" 
958         exit 1
959 fi
960