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