Fix:GTK:Fixed typo in keys names
[navit-package] / configure.in
1 AC_INIT(navit, 0.0.4)
2 AM_INIT_AUTOMAKE
3 AM_CONFIG_HEADER(config.h)
4 AM_MAINTAINER_MODE
5
6
7 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
8         [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
9
10 AC_USE_SYSTEM_EXTENSIONS
11
12 AC_PROG_CC
13 if eval "test x$GCC = xyes"; then
14         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
15 fi
16 AC_PROG_CXX
17 if eval "test x$GXX = xyes"; then
18         CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
19 fi
20
21 PKG_CHECK_EXISTS
22
23 AC_ARG_ENABLE(plugins,  [  --disable-plugins          disable plugins], 
24                         [
25                                 AC_DISABLE_SHARED
26                                 AC_ENABLE_STATIC
27                                 plugins=$enableval
28                         ],
29                         [
30                                 AC_ENABLE_SHARED
31                                 AC_DISABLE_STATIC
32                                 AC_DEFINE(
33                                         [USE_PLUGINS],
34                                         [],
35                                         Define to 1 if you have plugins.
36                                 )
37                                 plugins=yes
38                         ]
39 )
40 AC_PROG_LIBTOOL
41
42 AC_ARG_ENABLE(avoid-unaligned, [  --enable-avoid-unaligned          avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
43 test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
44
45 AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
46 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
47
48 AC_ARG_ENABLE(hildon, [  --enable-hildon              build with maemo/hildon support], enable_hildon=$enableval, enable_hildon=no)
49 if test "x${enable_hildon}" = "xyes" ; then
50         PKG_CHECK_MODULES(enable_hildon, hildon-libs >= 0.12.24, , [
51                 AC_MSG_RESULT(no)
52                 enable_hildon=no
53         ])
54         if test x"${enable_hildon}" = xyes ; then
55                 AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
56                 AC_SUBST(HILDON_CFLAGS)
57                 AC_SUBST(HILDON_LIBS)
58         fi
59 fi
60 AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
61
62 AC_ARG_ENABLE(libgps, [  --disable-libgps             don't use libgps], USE_LIBGPS=$enableval, USE_LIBGPS=yes)
63 AC_ARG_ENABLE(garmin, [  --disable-garmin             disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
64
65 AC_ARG_ENABLE(samplemap, [  --disable-samplemap             don't build the samplemap], samplemap=$enableval, samplemap=yes)
66 AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
67
68 AC_ARG_ENABLE(fastmath, [  --disable-fastmath             don't build with fastmath], fastmath=$enableval, fastmath=yes)
69 AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
70
71 if test x"$fastmath" = xyes; then
72         if eval "test x$GCC = xyes"; then
73                 CFLAGS="$CFLAGS -ffast-math"
74         fi
75 fi
76
77 X_CFLAGS="-I$x_includes"
78 X_LIBS="-L$ac_x_libraries"
79
80 PKG_CHECK_MODULES(NAVIT, [glib-2.0 gmodule-2.0], [], AC_MSG_ERROR([glib-2.0 or gmodule-2.0 not found. Usually you need to install a package named glib2-devel or libglib2.0-dev]))
81 AC_SUBST(NAVIT_CFLAGS)
82 AC_SUBST(NAVIT_LIBS)
83
84 AC_CHECK_HEADER(
85         zlib.h,
86         AC_DEFINE(
87                 [HAVE_ZLIB],
88                 [],
89                 Define to 1 if you have the <zlib.h> header file.
90                 )
91                 ZLIB_LIBS="-lz",
92         AC_MSG_WARN([*** no zlib.h\ -- reduced functionality of osm2navit])
93         )
94 AC_SUBST(ZLIB_LIBS)
95
96 AC_ARG_ENABLE(gui-gtk, [  --disable-gui-gtk             don't create gui gtk ], MODULE_GUI_GTK=$enableval, MODULE_GUI_GTK=yes)
97 if test "x$MODULE_GUI_GTK" = "xyes"; then
98         PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
99         if test "x$gtk2_pkgconfig" = "xyes"; then
100                 AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
101         fi
102 fi
103
104 GTK2_CFLAGS="$GTK2_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
105
106 AC_SUBST(GTK2_CFLAGS)
107 AC_SUBST(GTK2_LIBS)
108 AM_CONDITIONAL(GUI_GTK, [test "x$gtk2_pkgconfig" = "xyes"])
109 AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x$gtk2_pkgconfig" = "xyes"])
110 AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
111
112 PKG_CHECK_MODULES(FREETYPE2, [freetype2], [freetype2_pkgconfig=yes], [freetype2_pkgconfig=no])
113 if test "x$freetype2_pkgconfig" = "xyes"; then
114    AC_DEFINE(HAVE_FREETYPE2, 1, [Define to 1 if you have freetype2])
115 fi
116 AC_SUBST(FREETYPE2_CFLAGS)
117 AC_SUBST(FREETYPE2_LIBS)
118
119 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig_pkgconfig=yes], [fontconfig_pkgconfig=no])
120 if test "x$fontconfig_pkgconfig" = "xyes"; then
121    AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
122 fi
123 AC_SUBST(FONTCONFIG_CFLAGS)
124 AC_SUBST(FONTCONFIG_LIBS)
125
126 PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
127 if test "x$imlib2_pkgconfig" = "xyes"; then
128    AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
129 fi
130 AC_SUBST(IMLIB2_CFLAGS)
131 AC_SUBST(IMLIB2_LIBS)
132
133
134 AC_ARG_ENABLE(speech-speechd, [  --disable-speech-speechd             don't create speech speechd ], MODULE_SPEECH_SPEECHD=$enableval, MODULE_SPEECH_SPEECHD=yes)
135 if test "x$MODULE_SPEECH_SPEECHD" = "xyes"; then
136         AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) SPEECHD_LIBS="-lspeechd" speechd=yes,  AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
137 fi
138 AC_SUBST(SPEECHD_CFLAGS)
139 AC_SUBST(SPEECHD_LIBS)
140 AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, [test "x$speechd" = "xyes"])
141
142
143 AC_ARG_ENABLE(gui-sdl, [  --disable-gui-sdl             don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
144 if test "x$MODULE_GUI_SDL" = "xyes"; then
145         AC_CHECK_HEADER(
146                 SDL/SDL.h,
147                 AC_DEFINE(
148                         [HAVE_LIBSDL],
149                         [],
150                         Define to 1 if you have the <SDL/SDL.h> header file.
151                         )
152                         SDL_LIBS="-lSDL"
153                         sdl=yes,
154                 AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
155         )
156 fi
157 AC_SUBST(SDL_CFLAGS)
158 AC_SUBST(SDL_LIBS)
159
160 PKG_CHECK_MODULES(
161         [CEGUI],
162         [CEGUI-OPENGL >= 0.5.0],
163         [
164                 AC_DEFINE(
165                         [HAVE_CEGUI],
166                         [],
167                         [Define to 1 if you have the @<:@CEGUI/CEGUI.h@:>@ header file.])
168                 cegui=yes
169         ],
170         [AC_MSG_WARN([*** CEGUI not found -- SDL support disabled])]
171 )
172
173 AC_CHECK_HEADER(
174         GL/gl.h,
175         AC_DEFINE(
176                 [HAVE_OPENGL],
177                 [],
178                 Define to 1 if you have the <GL/gl.h> header file.
179                 )
180                 OPENGL_LIBS="$X_LIBS -lGL -lGLU"
181                 opengl=yes,
182         AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled])
183 )
184
185 AC_CHECK_HEADER(
186         GL/glut.h,
187         AC_DEFINE(
188                 [HAVE_GLUT],
189                 [],
190                 Define to 1 if you have the <GL/glut.h> header file.
191                 )
192                 glut=yes,
193         AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled])
194 )
195
196 AC_SUBST(OPENGL_CFLAGS)
197 AC_SUBST(OPENGL_LIBS)
198
199 AC_CHECK_HEADER(
200         GL/glc.h,
201         AC_DEFINE(
202                 [HAVE_GLC],
203                 [],
204                 Define to 1 if you have the <GL/glc.h> header file.
205                 )
206                 GLC_LIBS="-lGLC"
207                 glc=yes,
208         AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
209 )
210 AC_SUBST(GLC_CFLAGS)
211 AC_SUBST(GLC_LIBS)
212
213 if test x"$cegui" = xyes         
214                 then     
215          # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS       
216          # and we want just to check and use CEGUI_LIBS          
217          libstemp="$LIBS"        
218          # For CEGUI, we have to check the presence of some libraries.   
219          # The following are mandatory (used by navit)   
220          # If the user installed NavIt without, issue a warning and disable CEGUI        
221          AC_CHECK_LIB(CEGUIBase, main,   
222                   [],    
223                   [      
224                  echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"        
225                  ])      
226          AC_CHECK_LIB(CEGUIOpenGLRenderer, main,         
227                   [],    
228                   [      
229                  echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "     
230                  ], $OPENGL_LIBS )       
231          AC_CHECK_LIB(CEGUIFalagardWRBase, main,         
232                   [],    
233                   [      
234                  echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"      
235                  ], $OPENGL_LIBS)        
236          CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"    
237                  
238          # The following are optionnal, but we need to link against them if cegui was built with them    
239          libssilly="$OPENGL_LIBS -lpng"          
240          AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,    
241                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"],     
242                   [echo "CEGUISILLYImageCodec not found/not working, disabled."],        
243                   $libssilly     
244          )       
245                  
246          AC_CHECK_LIB(CEGUIXercesParser, main,   
247                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],        
248                   [echo "CEGUIXercesParser not found/not working, disabled."],   
249                   $OPENGL_LIBS   
250          )       
251                  
252          AC_CHECK_LIB(CEGUIExpatParser, main,    
253                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],         
254                   [echo "CEGUIExpatParser not found/not working, disabled."],    
255                   $OPENGL_LIBS   
256          )       
257                  
258          AC_CHECK_LIB(CEGUILibxmlParser, main,   
259                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],        
260                   [echo "CEGUILibxmlParser not found/not working, disabled."],   
261                   $OPENGL_LIBS   
262          )       
263                  
264          AC_CHECK_LIB(CEGUITinyXMLParser, main,          
265                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],       
266                   [echo "CEGUITinyXMLParser not found/not working, disabled."],          
267                   $OPENGL_LIBS   
268          )       
269                  
270          AC_CHECK_LIB(CEGUIDevILImageCodec, main,        
271                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"],     
272                   [echo "CEGUIDevILImageCodec not found/not working, disabled."],        
273                   $OPENGL_LIBS   
274          )       
275                  
276          AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,      
277                   [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"],       
278                   [echo "GUITGAImageCodec not found/not working, disabled."],    
279                   $OPENGL_LIBS   
280          )       
281                  
282          LIBS="$libstemp"        
283          echo "LIBS : $CEGUI_LIBS"       
284          fi
285
286 AC_SUBST(CEGUI_CFLAGS)
287 AC_SUBST(CEGUI_LIBS)
288
289 AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
290 AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
291
292
293 if test x"${USE_LIBGPS}" = xyes
294 then
295         AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) GPSD_LIBS="-lgps" gpsd=yes,  AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
296 fi
297 AC_SUBST(GPSD_CFLAGS)
298 AC_SUBST(GPSD_LIBS)
299 AM_CONDITIONAL(VEHICLE_GPSD, [test "x$gpsd" = "xyes"])
300
301 if test x"${USE_GARMIN}" = xyes
302 then
303         # check for libgarmin
304         PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
305         AC_SUBST(LIBGARMIN_CFLAGS)
306         AC_SUBST(LIBGARMIN_LIBS)
307 fi
308         AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
309
310
311 AC_ARG_ENABLE(binding-python, [  --disable-binding-python             don't create binding python ], MODULE_BINDING_PYTHON=$enableval, MODULE_BINDING_PYTHON=yes)
312 if test "$cross_compiling" = no; then
313         if test "x$MODULE_BINDING_PYTHON" = "xyes"; then
314                 AC_PATH_PROG(_PATH_PYTHON,[python])
315                 dnl Libraries and flags for embedded Python.
316                 dnl FIXME: I wish there was a less icky way to get this.
317                 if test x"$_PATH_PYTHON" != x ; then
318                         AC_MSG_CHECKING(for Python linkage)
319                         py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
320                         py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
321                         py_libdir="${py_prefix}/lib/python${py_ver}"
322                         PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
323                         if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
324                                 py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
325                                 py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
326                                 py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
327                                 py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
328                                 py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
329                                 PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
330                                 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
331                                 AC_DEFINE(HAVE_PYTHON, 1, [Define to 1 if you have python])
332                                 python=yes
333                                 AC_MSG_RESULT($py_libdir)
334                         else
335                                 AC_MSG_WARN([$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing, support for python disabled])
336                         fi
337                 fi
338         fi
339 else
340         AC_MSG_WARN([*** cross compiling, support for python disabled])
341 fi
342 AC_SUBST(PYTHON_CFLAGS)
343 AC_SUBST(PYTHON_LIBS)
344 AM_CONDITIONAL(BINDING_PYTHON, [test "x$python" = "xyes"])
345
346 # NLS
347
348 AC_ARG_ENABLE(nls,
349   [  --disable-nls        disable Native Language Support ( gettext/libintl )],
350    enable_nls=$enableval, enable_nls=yes)
351
352
353 INTLIBS=""
354 MOFILES=""
355 POFILES=""
356 LINGUAS=""
357
358 if test x$enable_nls = xyes; then
359
360   AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"], 
361              AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
362                          INTLIBS="" ))
363
364   AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
365   AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
366   AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
367
368   if test "$XGETTEXT" != ""; then 
369     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
370         echo "xgettext isn't GNU version"
371         XGETTEXT=""
372     fi
373   fi
374
375   if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
376      PO=""
377      if test "$LINGUAS" = ""; then
378            ling=` (cd $srcdir/po; /bin/ls *.po) `
379            for l in $ling; do
380                 lcode=`basename $l .po`
381                 LINGUAS="$LINGUAS$lcode "
382            done
383     fi
384     AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
385     echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
386   else
387    LINGUAS=""
388    PO=""
389    echo "xgettext and libintl.a don't both exist; will not build i18n support"
390  fi
391  for lang in $LINGUAS; do
392     MOFILES="$MOFILES $lang.mo"
393  done
394  for lang in $LINGUAS; do
395     POFILES="$POFILES $lang.po"
396  done
397 fi
398
399
400 AC_SUBST(INTLIBS)
401 AC_SUBST(MOFILES)
402 AC_SUBST(POFILES)
403 AM_GNU_GETTEXT_VERSION
404 AM_GNU_GETTEXT
405
406 LIBS="$LIBS -lm -rdynamic"
407
408 PACKAGE=navit
409 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
410 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
411 AC_SUBST(PACKAGE)
412 AC_SUBST(VERSION)
413
414 AC_CONFIG_FILES([
415 Makefile
416 src/Makefile
417 src/binding/Makefile
418 src/binding/python/Makefile
419 src/data/Makefile
420 src/data/mg/Makefile
421 src/data/textfile/Makefile
422 src/data/binfile/Makefile
423 src/data/garmin/Makefile
424 src/data/poi_geodownload/Makefile
425 src/data/poi_geodownload/libmdb/Makefile
426 src/data/poi_geodownload/libmdb/include/Makefile
427 src/fib-1.1/Makefile
428 src/graphics/Makefile
429 src/graphics/gtk_drawing_area/Makefile
430 src/graphics/opengl/Makefile
431 src/graphics/null/Makefile
432 src/gui/Makefile
433 src/gui/gtk/Makefile
434 src/gui/sdl/Makefile
435 src/gui/sdl/datafiles/Makefile
436 src/osd/Makefile
437 src/osd/core/Makefile
438 src/speech/Makefile
439 src/speech/cmdline/Makefile
440 src/speech/speech_dispatcher/Makefile
441 src/vehicle/Makefile
442 src/vehicle/file/Makefile
443 src/vehicle/gpsd/Makefile
444 src/vehicle/demo/Makefile
445 src/xpm/Makefile
446 src/maps/Makefile
447 intl/Makefile
448 po/Makefile
449 ])
450 #src/data/garmin_img/Makefile
451
452 AC_OUTPUT
453
454
455 echo ""
456 echo ""
457 echo "Summary of your installation :"
458 if test x"$gtk2_pkgconfig" = xyes
459         then
460         echo "GTK gui     : ENABLED"
461         else
462         echo "GTK gui     : DISABLED : you are missing a dependency. To fix this install a package named gtk2-devel or libgtk2.0-dev"
463 fi
464 # FIXME : maybe elaborate missing dependencies
465 if test x"$sdl" = xyes
466         then
467         if test x"$cegui" = xyes
468                 then
469                 if test x"$glut" = xyes
470                         then
471                         if test x"$glc" = xyes
472                                 then
473                                 echo "OpenGL gui     : ENABLED, with $CEGUI_LIBS"
474                                 else
475                                 echo "OpenGL gui     : DISABLED, you are missing quesoglc"
476                                 fi
477                         else
478                         echo "OpenGL gui     : DISABLED, your are missing glut"
479                         fi
480                 else
481                 echo "OpenGL gui     : DISABLED : you are missing cegui-devel >= 0.5"
482         fi
483         else
484         echo "OpenGL gui     : DISABLED : you are missing a SDL dependency (libsdl maybe?)"
485 fi
486 if test x"$enable_hildon" = xyes
487         then
488         echo "Maemo/Hildon: ENABLED"
489         else
490         echo "Maemo/Hildon: DISABLED"
491 fi
492
493 if test x"$gpsd" = xyes
494         then
495         echo "GPSD support: ENABLED"
496         else
497         echo "GPSD support: DISABLED"
498 fi
499 if test x"$speechd" = xyes
500         then
501         echo "SPEECHD     : ENABLED"
502         else
503         echo "SPEECHD     : DISABLED"
504 fi
505 if test x"${USE_GARMIN}" = xyes
506         then
507         if test "x$use_libgarmin" = "xyes"
508                 then
509                 echo "Garmin IMG  : ENABLED"
510                 else
511                 echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
512         fi
513         else 
514                 echo "Garmin IMG  : DISABLED (you requested it)"
515 fi
516 if test "x$samplemap" = "xyes"
517         then
518         echo "Samplemap   : ENABLED"
519         else
520         echo "Samplemap   : DISABLED"
521 fi
522 if  [ test x"$gtk2_pkgconfig" != xyes ] && [ test x"$sdl" != xyes ]
523         then
524         echo ""
525         echo "" 
526         echo "*** WARNING! you have no gui that can be built! ***"
527         echo "Please install the dependency for at least gtk or sdl gui"
528         echo "For more details, see the wiki at http://wiki.navit-project.org/"
529         echo "" 
530         exit 1
531 fi