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