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