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