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