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