Ticket #671: configure.in

File configure.in, 49.2 KB (added by tegzed, 12 years ago)

confirure rules for opengl driver; fix typos in output strings

Line 
1AC_INIT(navit, 0.2.0)
2AC_CONFIG_MACRO_DIR([m4])
3SOURCE_MODE=svn
4
5AM_INIT_AUTOMAKE
6AM_CONFIG_HEADER(config.h)
7
8AC_SUBST(SOURCE_MODE)
9AM_CONDITIONAL(SOURCE_MODE_SVN, [test "x${SOURCE_MODE}" = "xsvn"])
10
11if test "x${SOURCE_MODE}" = "xsvn" ; then
12        USE_MAINTAINER_MODE=yes
13else
14        USE_MAINTAINER_MODE=no
15fi
16
17AC_DEFUN([AM_MAINTAINER_MODE],
18[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
19  dnl maintainer-mode is enabled by default (reason of inclusion of this function)
20  AC_ARG_ENABLE(maintainer-mode,
21[  --enable-maintainer-mode  enable make rules and dependencies not useful
22                          (and sometimes confusing) to the casual installer],
23      USE_MAINTAINER_MODE=$enableval)
24  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
25  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
26  MAINT=$MAINTAINER_MODE_TRUE
27  AC_SUBST(MAINT)dnl
28]
29)
30
31AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
32
33AM_MAINTAINER_MODE
34
35
36plugins=yes; plugins_reason=default
37postgresql=yes; postgresql_reason=default
38samplemap=yes; samplemap_reason=default
39binding_dbus=yes; binding_dbus_reason=default
40binding_dbus_use_system_bus=no
41binding_python=yes; binding_python_reason=default
42font_freetype=yes; font_freetype_reason=default
43fontconfig=yes; fontconfig_reason=default
44fribidi=yes; fribidi_reason=default
45gui_gtk=no; gui_gtk_reason=default
46gui_win32=no; gui_win32_reason=default
47gui_internal=yes; gui_internal_reason=default
48gui_qml=no; gui_qml_reason=default
49graphics=yes; graphics_reason=default
50graphics_gd=no; graphics_gd_reason=default
51graphics_gtk_drawing_area=no; graphics_gtk_drawing_area_reason=default
52graphics_qt_qpainter=yes; graphics_qt_qpainter_reason=default
53graphics_null=yes; graphics_null_reason=default
54graphics_opengl=yes; graphics_opengl_reason=default
55graphics_sdl=yes; graphics_sdl_reason=default
56graphics_win32=no; graphics_win32_reason=default
57maptool=yes; maptool_reason=default
58map_binfile=yes; map_binfile_reason=default
59map_filter=yes; map_filter_reason=default
60map_mg=yes; map_mg_reason=default
61map_shapefile=yes; map_shapefile_reason=default
62map_textfile=yes; map_textfile_reason=default
63osd_core=yes; osd_core_reason=default
64plugin_pedestrian=no; plugin_pedestrian_reason=default
65routing=yes; routing_reason=default
66speech_android=no; speech_android_reason=default
67speech_cmdline=yes; speech_cmdline_reason=default
68speech_dbus=no; speech_dbus_reason=default
69speech_espeak=no; speech_espeak_reason=default
70speech_speech_dispatcher=yes; speech_speech_dispatcher_reason=default
71vehicle_demo=yes; vehicle_demo_reason=default
72vehicle_file=yes; vehicle_file_reason=default
73vehicle_gpsd=yes; vehicle_gpsd_reason=default
74vehicle_gpsd_dbus=no; vehicle_gpsd_dbus_reason=default
75vehicle_gypsy=yes; vehicle_gypsy_reason=default
76vehicle_null=no; vehicle_null_reason=default
77vehicle_wince=no; vehicle_wince_reason=default
78vehicle_iphone=no; vehicle_iphone_reason=default
79vehicle_android=no; vehicle_android_reason=default
80graphics_android=no; graphics_android_reason=default
81vehicle_maemo=no; vehicle_maemo_reason=default
82
83shared_libnavit=no
84LIBNAVIT=navit
85bin_navit=yes
86
87AC_CANONICAL_HOST
88win32=no
89win32ce=no
90case $host_os in
91wince|mingw32ce|cegcc)
92        win32=yes
93        win32ce=yes
94        AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
95        AC_DEFINE(HAVE_API_WIN32_CE, 1, [Have Windows CE API])
96        gui_win32=yes; gui_win32_reason="host_os is wince"
97        graphics_win32=yes; graphics_win32_reason="host_os is wince"
98        vehicle_wince=yes; vehcile_wince_reason="host_os is wince"
99        speech_espeak=yes; speech_espeak_reason="host_os is wince"
100        support_libpng=yes
101        maptool=no; maptool_reason="host_os is wince"
102        ;;
103mingw32)
104        win32=yes
105        AC_DEFINE(HAVE_API_WIN32_BASE, 1, [Have Windows Base API])
106        AC_DEFINE(HAVE_API_WIN32, 1, [Have Windows API])
107        gui_win32=yes; gui_win32_reason="host_os is mingw32"
108        graphics_win32=yes; graphics_win32_reason="host_os is mingw32"
109        speech_espeak=yes; speech_espeak_reason="host_os is mingw32"
110        support_libpng=yes
111        ;;
112linux*_android)
113        android=yes
114        shared_libnavit=yes
115        bin_navit=no
116        AC_DEFINE(HAVE_API_ANDROID, 1, [Have Android API])
117        echo "void dl_unwind_find_exidx(void) {}" >crt0.c
118        $CC -c crt0.c
119        $AR r libg.a crt0.o
120        vehicle_android=yes; vehicle_android_reason="host_os is android"
121        graphics_android=yes; graphics_android_reason="host_os is android"
122        speech_android=yes; speech_android_reason="host_os is android"
123        MODULE_LDFLAGS="-module -Xcompiler -nostdlib -Xcompiler -Wl,-rpath -Xcompiler -Wl,/data/data/org.navitproject.navit/lib"
124        MODULE_LIBADD="-llog"
125        LIBNAVIT=_data_data_org.navitproject.navit_lib_navit
126        NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -l$LIBNAVIT"
127        ;;
128esac
129if test "x$win32" = "xyes"
130then
131        NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/win32"
132        NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
133fi
134
135
136AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"])
137AM_CONDITIONAL(SUPPORT_WIN32CE, [test "x$win32ce" = "xyes"])
138AM_CONDITIONAL(SUPPORT_ANDROID, [test "x$android" = "xyes"])
139
140if test "x$support_libpng" = "xyes"
141then
142        NAVIT_CFLAGS="$NAVIT_CFLAGS -I\$(top_srcdir)/navit/support/libpng"
143        NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/libpng -lsupport_libpng"
144fi
145AM_CONDITIONAL(SUPPORT_LIBPNG, [test "x$support_libpng" = "xyes"])
146
147AC_SUBST(MODULE_LDFLAGS)
148AC_SUBST(MODULE_LIBADD)
149AC_SUBST(NAVIT_MODULE_LDFLAGS)
150
151LIBS="$LIBS -lm"
152if test "$win32" == "no" -a test "$host_os" != "cygwin"; then
153        LIBS="$LIBS -rdynamic"
154fi
155
156m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
157        [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])
158
159AC_USE_SYSTEM_EXTENSIONS
160
161m4_ifdef([AC_PROG_OBJC],[AC_PROG_OBJC])
162AC_PROG_CC
163m4_ifdef([AC_PROG_OBJC],[AC_PROG_OBJC],[AC_SUBST([OBJC],["$CC"])
164AC_SUBST([OBJCFLAGS],["$CFLAGS"])])
165m4_ifndef([AC_PROG_OBJC],[_AM_DEPENDENCIES(OBJC)])
166
167if eval "test x`uname` = xDarwin"; then
168        CFLAGS="$CFLAGS -I/opt/local/include -L/opt/local/lib"
169fi
170if eval "test x$GCC = xyes"; then
171        CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
172fi
173AM_PROG_CC_C_O
174
175AC_PROG_CXX
176if eval "test x$GXX = xyes"; then
177        CXXFLAGS="$CXXFLAGS -Wall -Wcast-align -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
178fi
179
180PKG_CHECK_EXISTS
181if test "x${cross_compiling}" = "xyes"; then
182        samplemap="no";samplemap_reason="not supported for cross compiling"
183        binding_python="no";binding_python_reason="not supported for cross compiling"
184        postgresql="no";postgresql_reason="not supported for cross compiling"
185        AC_MSG_CHECKING([for a C compiler for build tools])
186        AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
187else
188        CC_FOR_BUILD=$CC
189fi
190CCLD_FOR_BUILD="$CC_FOR_BUILD"
191AC_SUBST(cross_compiling)
192AM_CONDITIONAL(CROSS_COMPILING, test "x${cross_compiling}" = "xyes")
193AC_SUBST(CC_FOR_BUILD)
194AC_SUBST(CCLD_FOR_BUILD)
195
196# Endianness
197# defines WORDS_BIGENDIAN for big-endian systems
198AC_C_BIGENDIAN
199
200AC_ARG_ENABLE(variant, [  --enable-variant=something          set variant], NAVIT_VARIANT=$enableval)
201AC_SUBST(NAVIT_VARIANT)
202
203AC_ARG_ENABLE(cache-size, [  --enable-cache-size=size in bytes        set cache size], AC_DEFINE_UNQUOTED(CACHE_SIZE,[${enableval}], [Size of Cache in Bytes]))
204
205AC_ARG_ENABLE(avoid-unaligned, [  --enable-avoid-unaligned          avoid unaligned accesses], AVOID_UNALIGNED=$enableval, AVOID_UNALIGNED=no)
206test x"${AVOID_UNALIGNED}" = xyes && AC_DEFINE(AVOID_UNALIGNED,[],Define to avoid unaligned access)
207
208AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
209test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
210
211AC_ARG_ENABLE(transformation-roll, [  --enable-transformation-roll      add support for specifying roll angle in transformation], ENABLE_ROLL=$enableval, ENABLE_ROLL=no)
212test x"${ENABLE_ROLL}" = xyes && AC_DEFINE(ENABLE_ROLL,[],Define to add support for specifying roll angle in transformation)
213
214AC_ARG_ENABLE(hildon, [  --disable-hildon              build without maemo/hildon support], enable_hildon=$enableval, enable_hildon=yes)
215if test "x${enable_hildon}" = "xyes" ; then
216        PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, , [
217                AC_MSG_RESULT(no)
218                enable_hildon=no
219        ])
220        PKG_CHECK_MODULES(GPSBT, gpsbt, [
221                AC_DEFINE(HAVE_GPSBT, 1, [Have the gpsbt library])
222                AC_SUBST(GPSBT_CFLAGS)
223                AC_SUBST(GPSBT_LIBS)
224                ], [
225                AC_MSG_RESULT(no)
226        ])
227        if test x"${enable_hildon}" = xyes ; then
228                AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
229                AC_SUBST(HILDON_CFLAGS)
230                AC_SUBST(HILDON_LIBS)
231        fi
232fi
233AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
234
235AC_ARG_ENABLE(osso, [  --disable-osso              build without maemo/osso support], enable_osso=$enableval, enable_osso=yes)
236if test "x${enable_osso}" = "xyes" ; then
237        PKG_CHECK_MODULES(LIBOSSO, libosso, , [
238                AC_MSG_RESULT(no)
239                enable_osso=no
240        ])
241        if test x"${enable_osso}" = xyes ; then
242                AC_DEFINE(USE_OSSO, 1, [Build with maemo/osso support])
243                AC_SUBST(LIBOSSO_CFLAGS)
244                AC_SUBST(LIBOSSO_LIBS)
245        fi
246fi
247echo ${enable_osso}
248AM_CONDITIONAL(USE_OSSO, test "x${enable_osso}" = "xyes")
249
250AC_ARG_ENABLE(garmin, [  --disable-garmin             disable garmin support], USE_GARMIN=$enableval, USE_GARMIN=yes)
251
252# samplemap
253AC_PATH_PROG(_PATH_BZCAT,[bzcat])
254if test "x${_PATH_BZCAT}" = "x" ; then
255        samplemap=no; samplemap_reason="bzcat missing"
256fi
257AC_ARG_ENABLE(maptool, [  --disable-maptool             don't build maptool], maptool=$enableval;maptool_reason="configure parameter")
258AM_CONDITIONAL(MAPTOOL, [test "x$maptool" = "xyes"])
259if test "x$maptool" != "xyes"; then
260        samplemap=no; samplemap_reason="maptool disabled"
261fi
262AC_ARG_ENABLE(samplemap, [  --disable-samplemap             don't build the samplemap], samplemap=$enableval;samplemap_reason="configure parameter")
263AM_CONDITIONAL(BUILD_SAMPLEMAP, [test "x$samplemap" = "xyes"])
264
265AC_ARG_ENABLE(fastmath, [  --disable-fastmath             don't build with fastmath], fastmath=$enableval, fastmath=yes)
266AM_CONDITIONAL(FASTMATH, [test "x$fastmath" = "xyes"])
267
268if test x"$fastmath" = xyes; then
269        if eval "test x$GCC = xyes"; then
270                CFLAGS="$CFLAGS -ffast-math"
271        fi
272fi
273
274X_CFLAGS="-I$x_includes"
275AS_IF([test -n "$ac_x_libraries"], [X_LIBS="-L$ac_x_libraries"])
276
277# glib
278AC_ARG_ENABLE(glib, [  --disable-glib             don't build with external glib], glib=$enableval, glib=yes)
279if test "x${glib}" = "xyes" -a "x${GLIB_CFLAGS}" = "x" -a "x${GLIB_LIBS}" = "x"; then
280        PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0], [glib=yes],[glib=no])
281fi
282if test "x${glib}" = "xyes"; then
283        AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if you have (external) glib library])
284else
285        GLIB_CFLAGS="-I\$(top_srcdir)/navit/support -I\$(top_srcdir)/navit/support/glib -I\$(top_srcdir)/navit/support/ezxml"
286        GLIB_LIBS="-L\$(top_builddir)/navit/support/glib -lsupport_glib -L\$(top_builddir)/navit/support/ezxml -lsupport_ezxml"
287        if test "x${win32}" != "xyes" -a "x${android}" != "xyes"; then
288                GLIB_LIBS="$GLIB_LIBS -lpthread"
289        fi
290fi
291
292# gmodule
293AC_ARG_ENABLE(gmodule, [  --disable-gmodule             don't build with gmodule], gmodule=$enableval, gmodule=yes)
294if test x"${gmodule}" = "xyes"; then
295        PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule=yes], [gmodule=no])
296fi
297if test "x${gmodule}" = "xyes"; then
298        AC_DEFINE(HAVE_GMODULE, 1, [Define to 1 if you have gmodule])
299else
300        AC_CHECK_LIB(dl, dlopen,
301                [plugins_reason="default, via dlopen";GMODULE_LIBS="-ldl";AC_DEFINE(HAVE_DLOPEN, 1, [Define to 1 if you have dlopen])],         
302                [plugins="no"; plugins_reason="package gmodule and dlopen missing"]
303        )
304fi
305
306# libcrypto
307AC_CHECK_LIB(crypto, AES_encrypt, [CRYPTO_LIBS="-lcrypto";AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define to 1 if you have libcrypto])])   
308AC_SUBST(CRYPTO_LIBS)
309
310# plugins
311AC_ARG_ENABLE(plugins,  [  --disable-plugins          disable plugins], [ plugins=$enableval;plugin_reason="configure parameter" ])
312AC_ARG_ENABLE(shared-libnavit,  [  --enable-shared-libnavit], [ shared_libnavit=$enableval])
313if test "x${plugins}" = "xyes"; then
314        AC_ENABLE_SHARED
315        AC_DISABLE_STATIC
316        AC_DEFINE(
317                [USE_PLUGINS],
318                [],
319                Define to 1 if you have plugins.
320        )
321        if test "x${win32}" = "xyes"; then
322                shared_libnavit=yes
323                NAVIT_MODULE_LDFLAGS="-no-undefined -L\$(top_builddir)/navit -l$LIBNAVIT -L\$(top_builddir)/intl -lintl"
324        fi
325else
326        if test "x${shared_libnavit}" = "xyes"; then
327                AC_ENABLE_SHARED
328                AC_DISABLE_STATIC
329        else
330                AC_DISABLE_SHARED
331                AC_ENABLE_STATIC
332        fi
333fi
334AM_CONDITIONAL(PLUGINS, [test "x$plugins" = "xyes"])
335AM_CONDITIONAL(SHARED_LIBNAVIT, [test "x$shared_libnavit" = "xyes"])
336AM_CONDITIONAL(BIN_NAVIT, [test "x$bin_navit" = "xyes"])
337AC_PROG_LIBTOOL
338AC_SUBST(LIBNAVIT)
339
340AM_CONDITIONAL(EVENT_GLIB, [test "x$glib" = "xyes"])
341AM_CONDITIONAL(SUPPORT_GLIB, [test "x$glib" = "xno"])
342AM_CONDITIONAL(SUPPORT_EZXML, [test "x$glib" = "xno"])
343
344if test "x${ZLIB_CFLAGS}" = "x" -a "x${ZLIB_LIBS}" = "x"; then
345AC_CHECK_HEADER(
346        zlib.h,
347        AC_DEFINE(
348                [HAVE_ZLIB],
349                [],
350                Define to 1 if you have the <zlib.h> header file.
351        )
352        ZLIB_LIBS="-lz"
353        zlib=yes,
354        ZLIB_CFLAGS="-I\$(top_srcdir)/navit/support/zlib"
355        ZLIB_LIBS="-L\$(top_builddir)/navit/support/zlib -lsupport_zlib"
356        zlib=no
357)
358else
359        zlib=yes
360fi
361AM_CONDITIONAL(SUPPORT_ZLIB, [test "x$zlib" = "xno"])
362AC_SUBST(ZLIB_CFLAGS)
363AC_SUBST(ZLIB_LIBS)
364
365AC_CHECK_HEADER(sys/socket.h, AC_DEFINE([HAVE_SOCKET],[],Define to 1 if you have sockets))
366
367# gtk
368PKG_CHECK_MODULES(GTK2, [gtk+-2.0], [gtk2_pkgconfig=yes], [gtk2_pkgconfig=no])
369if test "x$gtk2_pkgconfig" = "xyes"; then
370        AC_DEFINE(HAVE_GTK2, 1, [Define to 1 if you have gtk2])
371        graphics_gtk_drawing_area=yes; graphics_gtk_drawing_area_reason="gtk+-2.0 present"
372        gui_gtk=yes; gui_gtk_reason="gtk+-2.0 present"
373fi
374
375# fsync
376AC_MSG_CHECKING(for fsync)
377AC_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))
378
379# system
380AC_MSG_CHECKING(for system)
381AC_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))
382
383AC_MSG_CHECKING(for CreateProcess)
384AC_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))
385
386AC_ARG_ENABLE(graphics-sdl, [  --disable-graphics-sdl             don't create graphics sdl], graphics_sdl=$enableval;graphics_sdl_reason="configure parameter")
387
388if test "x${graphics_sdl}" = "xyes" ; then
389        PKG_CHECK_MODULES(SDL,
390                          [sdl],
391                          [graphics_sdl="yes"
392                           graphics_sdl_reason="sdl present"] ,
393                          [graphics_sdl="no"
394                           graphics_sdl_reason="sdl not available"]
395                         )
396        AC_SUBST(SDL_CFLAGS)
397        AC_SUBST(SDL_LIBS)
398fi
399if test "x${graphics_sdl}" = "xyes" ; then
400        save_CPPFLAGS=$CPPFLAGS
401        CPPFLAGS="$SDL_CFLAGS $CPPFLAGS"
402        AC_CHECK_HEADER(SDL_image.h,SDL_IMAGE_LIBS=-lSDL_image,graphics_sdl="no";graphics_sdl_reason="SDL_image.h missing")
403        AC_SUBST(SDL_IMAGE_LIBS)
404        CPPFLAGS=$save_CPPFLAGS
405fi
406if test "x${graphics_sdl}" = "xyes" ; then
407        AC_DEFINE(USE_GRAPHICS_SDL, 1, [Build with graphics sdl])
408fi
409AM_CONDITIONAL(USE_GRAPHICS_SDL, test "x${graphics_sdl}" = "xyes")
410
411AC_ARG_ENABLE(postgresql, [  --disable-postgresql             don't add postgresql support to maptool], postgresql=$enableval;postgresql_reason="configure parameter")
412if test "x${postgresql}" = "xyes" ; then
413        if test -z "$PG_CONFIG"; then
414            AC_PATH_PROG([PG_CONFIG], [pg_config], [])
415        fi
416        AC_MSG_CHECKING([for PostgreSQL libraries with $PG_CONFIG])
417        if test ! -x "$PG_CONFIG"; then
418            if test "x${PG_CONFIG}" = "x" ; then
419                 postgresql_reason="$PG_CONFIG not executable"
420            else
421                 postgresql_reason="pg_config missing"
422            fi
423            postgresql=no
424            AC_MSG_RESULT([no])
425        else
426            POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
427            POSTGRESQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
428            AC_DEFINE(HAVE_POSTGRESQL, 1, [Postgresql libraries available])
429            AC_SUBST(POSTGRESQL_CFLAGS)
430            AC_SUBST(POSTGRESQL_LIBS)
431            AC_MSG_RESULT([yes])
432        fi
433fi
434AM_CONDITIONAL(HAVE_POSTGRESQL, test "x${postgresql}" = "xyes")
435# font
436# freetype
437AC_ARG_ENABLE(font-freetype, [  --disable-font-freetype             don't add freetype support], font_freetype=$enableval;font_freetype_reason="configure parameter")
438if test "x${font_freetype}" = "xyes" -a "x${FREETYPE2_CFLAGS}" = "x" -a "x${FREETYPE2_LIBS}" = "x"; then
439        PKG_CHECK_MODULES(FREETYPE2, [freetype2], , [font_freetype=no;font_freetype_reason="Package freetype2 missing"])       
440else
441        fribidi=no
442fi
443AC_SUBST(FREETYPE2_CFLAGS)
444AC_SUBST(FREETYPE2_LIBS)
445AM_CONDITIONAL(FONT_FREETYPE, test "x${font_freetype}" = "xyes")
446AC_ARG_WITH(freetype-fonts, [ --with-freetype-fonts   specify what fonts to use], AC_DEFINE_UNQUOTED(FREETYPE_FONTS,[${withval}],[Freetype fonts to use]))
447
448AC_ARG_ENABLE(fontconfig, [  --disable-fontconfig             don't add fontconfig support], fontconfig=$enableval;fontconfig_reason="configure parameter")
449if test "x${fontconfig}" = "xyes"; then
450        PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [fontconfig=yes], [fontconfig=no])
451fi
452if test "x$fontconfig" = "xyes"; then
453   AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if you have fontconfig])
454fi
455AC_SUBST(FONTCONFIG_CFLAGS)
456AC_SUBST(FONTCONFIG_LIBS)
457
458AM_CONDITIONAL(FONTS, test "x${font_freetype}" = "xyes" -a "x$fontconfig" != "xyes")
459
460# fribidi
461AC_ARG_ENABLE(fribidi, [  --disable-fribidi      dont build with fribidi], fribidi=$enableval;fribidi_reason="configure parameter", fribidi=yes)
462if test x"${fribidi}" = "xyes"; then
463        PKG_CHECK_MODULES(FRIBIDI, [fribidi], [fribidi=yes], [fribidi=no;fribidi_reason="FriBidi library not found"])
464fi
465if test x"${fribidi}" = "xyes"; then
466        AC_DEFINE(USE_FRIBIDI, 1, [Build with fribidi support])
467fi
468AC_SUBST(FRIBIDI_CFLAGS)
469AC_SUBST(FRIBIDI_LIBS)
470
471PKG_CHECK_MODULES(IMLIB2, [imlib2], [imlib2_pkgconfig=yes], [imlib2_pkgconfig=no])
472if test "x$imlib2_pkgconfig" = "xyes"; then
473   AC_DEFINE(HAVE_IMLIB2, 1, [Define to 1 if you have imlib2])
474fi
475AC_SUBST(IMLIB2_CFLAGS)
476AC_SUBST(IMLIB2_LIBS)
477
478
479
480AC_ARG_ENABLE(gui-sdl, [  --disable-gui-sdl             don't create gui sdl ], MODULE_GUI_SDL=$enableval, MODULE_GUI_SDL=yes)
481if test "x$MODULE_GUI_SDL" = "xyes"; then
482        AC_CHECK_HEADER(
483                SDL/SDL.h,
484                AC_DEFINE(
485                        [HAVE_LIBSDL],
486                        [],
487                        Define to 1 if you have the <SDL/SDL.h> header file.
488                        )
489                        SDL_LIBS="-lSDL"
490                        sdl=yes,
491                AC_MSG_WARN([*** no SDL/SDL.h -- SDL support disabled])
492        )
493fi
494
495AC_CHECK_HEADER(
496        X11/Xmu/Xmu.h,
497        AC_DEFINE(
498                [HAVE_XMU],
499                [],
500                Define to 1 if you have the <X11/Xmu/Xmu.h> header file.
501                )
502                xmu=yes,
503        AC_MSG_WARN([*** no X11/Xmu/Xmu.h -- opengl and SDL support disabled])
504)
505
506AC_ARG_ENABLE(graphics-opengl, [  --disable-graphics-opengl      disable graphics type OpenGL], graphics_opengl=$enableval;graphics_opengl_reason="configure parameter")
507if test "x${graphics_opengl}" = "xyes" ; then
508
509AC_CHECK_HEADER(
510        GL/gl.h,
511        AC_DEFINE(
512                [HAVE_OPENGL],
513                [],
514                Define to 1 if you have the <GL/gl.h> header file.
515                )
516                OPENGL_LIBS="$X_LIBS -lGL -lGLU -lglut -lfreeimage"
517                opengl=yes,
518        AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled];graphics_opengl=no;graphics_opengl_reason="Headers missing")
519)
520
521AC_CHECK_HEADER(
522        GL/glut.h,
523        AC_DEFINE(
524                [HAVE_GLUT],
525                [],
526                Define to 1 if you have the <GL/glut.h> header file.
527                )
528                glut=yes,
529        AC_MSG_WARN([*** no GL/glut.h -- opengl and SDL support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
530)
531
532AC_CHECK_HEADER(
533        GL/freeglut.h,
534        AC_DEFINE(
535                [HAVE_FREEGLUT],
536                [],
537                Define to 1 if you have the <GL/freeglut.h> header file.
538                )
539                freeglut=yes,
540        AC_MSG_WARN([*** no GL/freeglut.h -- opengl support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
541)
542
543AC_SUBST(OPENGL_CFLAGS)
544AC_SUBST(OPENGL_LIBS)
545
546AC_CHECK_HEADER(
547        GL/glc.h,
548        AC_DEFINE(
549                [HAVE_GLC],
550                [],
551                Define to 1 if you have the <GL/glc.h> header file.
552                )
553                GLC_LIBS="-lGLC"
554                glc=yes,
555        AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
556)
557
558AC_CHECK_HEADER(
559        FreeImage.h,
560        AC_DEFINE(
561                [HAVE_FREEIMAGE],
562                [],
563                Define to 1 if you have the <FreeImage.h> header file.
564                )
565                FREEIMAGE_LIBS="-lfreeimage"
566                freeimage=yes,
567        AC_MSG_WARN([*** no FreeImage.h -- opengl support disabled]);graphics_opengl=no;graphics_opengl_reason="Headers missing"
568)
569AC_SUBST(FREEIMAGE_LIBS)
570
571AC_SUBST(GLC_CFLAGS)
572AC_SUBST(GLC_LIBS)
573fi
574
575AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$xmu" = "xyes" ])
576
577AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" -a "x$freeglut" = "xyes" -a "x$opengl" = "xyes" -a "x$freeimage" = "xyes" ])
578
579system_shapefile=no
580AC_CHECK_HEADERS(
581                [shapefil.h libshp/shapefil.h],
582                AC_DEFINE(
583                          [HAVE_SYS_SHAPEFILELIB],
584                          [1],
585                          Define to 1 if you have the <libshp/shapefil.h> header file.
586                          )
587                SHAPEFILE_LIBS="-lshp"
588                system_shapefile=yes
589                )
590AC_SUBST(SHAPEFILE_CFLAGS)
591AC_SUBST(SHAPEFILE_LIBS)
592AM_CONDITIONAL(HAVE_SYSTEM_SHAPEFILELIB, [test "x$system_shapefile" = "xyes" ])
593if test x"${system_shapefile}" = xno
594then
595        AC_MSG_WARN([*** no libshp/shapefil.h -- using included copy])
596fi
597
598
599if test x"${USE_GARMIN}" = xyes
600then
601        # check for libgarmin
602        PKG_CHECK_MODULES(LIBGARMIN, libgarmin, use_libgarmin=yes, use_libgarmin=no)
603        AC_SUBST(LIBGARMIN_CFLAGS)
604        AC_SUBST(LIBGARMIN_LIBS)
605fi
606        AM_CONDITIONAL(HAVELIBGARMIN, [test "x$use_libgarmin" = "xyes"])
607
608## binding
609# python
610AC_ARG_ENABLE(binding-python, [  --disable-binding-python             don't create binding python], binding_python=$enableval;binding_python_reason="configure parameter")
611if test "x${binding_python}" = "xyes"; then
612        AC_PATH_PROG(_PATH_PYTHON,[python])
613        dnl Libraries and flags for embedded Python.
614        dnl FIXME: I wish there was a less icky way to get this.
615        if test "x${_PATH_PYTHON}" != "x" ; then
616                AC_MSG_CHECKING(for Python linkage)
617                AC_PATH_PROG([PYTHONCONFIG], [python-config], [])
618                if test "x${PYTHONCONFIG}" = "x" ; then
619                        py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
620                        py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[[:3]]'`
621                        py_lib=`$_PATH_PYTHON -c 'import sys; print sys.lib'`
622                        py_libdir="${py_prefix}/${py_lib}/python${py_ver}"
623                        PYTHON_CFLAGS="-I${py_prefix}/include/python${py_ver}"
624                        if test -f $py_libdir/config/Makefile -a -f $py_prefix/include/python${py_ver}/Python.h; then
625                                py_libs=`grep '^LIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
626                                py_libc=`grep '^LIBC=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
627                                py_libm=`grep '^LIBM=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
628                                py_liblocalmod=`grep '^LOCALMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
629                                py_libbasemod=`grep '^BASEMODLIBS=' $py_libdir/config/Makefile | sed -e 's/^.*=//'`
630                                PYTHON_LIBS="-L$py_libdir/config $py_libs $py_libc $py_libm -lpython$py_ver $py_liblocalmod $py_libbasemod"
631                                PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/[ \\t]*/ /g'`
632                                AC_MSG_RESULT($py_libdir)
633                        else
634                                binding_python="no"
635                                binding_python_reason="$py_libdir/config/Makefile or $py_prefix/include/python${py_ver}/Python.h missing"
636                        fi
637
638                else
639                        PYTHON_CFLAGS="`${PYTHONCONFIG} --cflags`"
640                        PYTHON_LIBS="`${PYTHONCONFIG} --ldflags`"
641                fi
642        else
643                binding_python="no"
644                binding_python_reason="python executable missing"
645        fi
646fi
647if test "x${binding_python}" = xyes ; then
648        AC_DEFINE(USE_BINDING_PYTHON, 1, [Build with binding python])
649fi
650AC_SUBST(PYTHON_CFLAGS)
651AC_SUBST(PYTHON_LIBS)
652AM_CONDITIONAL(BINDING_PYTHON, test "x${binding_python}" = "xyes")
653
654# dbus
655AC_ARG_ENABLE(binding-dbus,   [  --disable-binding-dbus               don't create binding dbus], binding_dbus=$enableval;binding_dbus_reason="configure parameter")
656AC_ARG_ENABLE(binding-dbus-use-system-bus,  [  --enable-binding-dbus-use-system-bus   use system bus for dbus binding], binding_dbus_use_system_bus=$enableval)
657if test "x${binding_dbus}" = "xyes" ; then
658        PKG_CHECK_MODULES(DBUS, [dbus-glib-1], ,binding_dbus=no)
659fi
660if test "x${binding_dbus}" = "xyes" ; then
661        AC_DEFINE(USE_BINDING_DBUS, 1, [Build with binding dbus])
662        vehicle_gpsd_dbus="yes"
663        vehicle_gpsd_dbus_reason="dbus binding present"
664        speech_dbus="yes"
665        speech_dbus_reason="dbus binding present"
666fi
667if test "x${binding_dbus_use_system_bus}" = "xyes" ; then
668        AC_DEFINE(DBUS_USE_SYSTEM_BUS, 1, [Use system bus instead of session bus for binding dbus])
669fi
670AC_SUBST(DBUS_CFLAGS)
671AC_SUBST(DBUS_LIBS)
672AM_CONDITIONAL(BINDING_DBUS, test "x${binding_dbus}" = "xyes")
673AM_CONDITIONAL(VEHICLE_GPSD_DBUS, test "x${vehicle_gpsd_dbus}" = "xyes")
674AM_CONDITIONAL(SPEECH_DBUS, test "x${speech_dbus}" = "xyes")
675AC_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")
676AC_SUBST(DBUS_SERVICE_DIR)
677
678# svg
679AC_ARG_ENABLE(svg, [  --disable-svg        disable Scalable Vector Graphics], enable_svg=$enableval, enable_svg=yes)
680AC_ARG_ENABLE(svg2png, [  --disable-svg2png        disable conversion of svgs to pngs], enable_svg2png=$enableval, enable_svg2png=yes)
681AC_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")
682AC_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")
683AC_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")
684AC_ARG_WITH(svg2png-use-convert, [  --with-svg2png-use-convert   use imagemagick's convert for png creation], SVG2PNG_CONVERTER="convert")
685AC_ARG_WITH(svg2png-use-rsvg-convert, [  --with-svg2png-use-rsvg-convert   use librsvg's rsvg-convert for png creation], SVG2PNG_CONVERTER="rsvg-convert")
686AC_ARG_WITH(svg2png-use-inkscape, [  --with-svg2png-use-inkscape   use inkscapes internal convert routines for png creation], SVG2PNG_CONVERTER="inkscape")
687AC_ARG_WITH(svg2png-use-ksvgtopng4, [  --with-svg2png-use-ksvgtopng4   use kde4's ksvgtopng4 for png creation], SVG2PNG_CONVERTER="ksvgtopng4")
688AC_ARG_WITH(svg2png-use-ksvgtopng, [  --with-svg2png-use-ksvgtopng   use kde3's convert for png creation], SVG2PNG_CONVERTER="ksvgtopng")
689if test "x${enable_svg2png}" = "xyes" ; then
690    if test "x${SVG2PNG_CONVERTER}" = "x"; then
691        SVG2PNG_CONVERTER="rsvg-convert ksvgtopng ksvgtopng4 inkscape convert"
692    fi
693    AC_PATH_PROGS([SVG2PNG], ${SVG2PNG_CONVERTER}, [none])
694    if test "x${SVG2PNG}" = "xnone"; then
695        enable_svg2png="no"
696    fi
697fi
698AC_SUBST(SVG2PNG)
699AC_SUBST(SVG2PNG_SCALES)
700AC_SUBST(SVG2PNG_SCALES_FLAG)
701AC_SUBST(SVG2PNG_SCALES_NAV)
702AM_CONDITIONAL(USE_SVG2PNG_SCALES, test "x${SVG2PNG_SCALES}" != "xyes" -a "x${SVG2PNG_SCALES}" != "x")
703AM_CONDITIONAL(USE_SVG2PNG_SCALES_FLAG, test "x${SVG2PNG_SCALES_FLAG}" != "xyes" -a "x${SVG2PNG_SCALES_FLAG}" != "x")
704AM_CONDITIONAL(USE_SVG2PNG_SCALES_NAV, test "x${SVG2PNG_SCALES_NAV}" != "xyes" -a "x${SVG2PNG_SCALES_NAV}" != "x")
705AM_CONDITIONAL(USE_SVG2PNG, test "x${enable_svg2png}" = "xyes")
706AM_CONDITIONAL(USE_SVG, test "x${enable_svg}" = "xyes")
707
708# XSLTS
709AC_ARG_WITH(xslts, [  --with-xslts   enable processing of navit.xml with given xslt scripts], XSLTS=$withval, XSLTS="")
710AC_SUBST(XSLTS)
711AC_ARG_WITH(saxon, [ --with-saxon   specify the saxon xslt processor], SAXON=$withval, SAXON="saxon")
712AC_SUBST(SAXON)
713
714# Android Permissions
715AC_ARG_WITH(android-permissions, [  --with-android-permissions   Set additional android permissions], ANDROID_PERMISSIONS=$withval, ANDROID_PERMISSIONS="")
716AC_SUBST(ANDROID_PERMISSIONS)
717
718# NLS
719
720AC_ARG_ENABLE(nls,
721  [  --disable-nls        disable Native Language Support ( gettext/libintl )],
722   enable_nls=$enableval, enable_nls=yes)
723
724
725INTLIBS=""
726MOFILES=""
727POFILES=""
728POIFILES=""
729LINGUAS=""
730
731xgettext_glade=no
732if test "x$enable_nls" = "xyes"; then
733
734  AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],[INTLIBS="-lintl" HAVEGETTEXT="yes"])
735  AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
736  AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
737  AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
738
739  if test "$XGETTEXT" != ""; then
740    if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
741        echo "xgettext isn't GNU version"
742        XGETTEXT=""
743    else
744        if echo '<test/>' | $XGETTEXT -L Glade - ; then
745            xgettext_glade=yes
746        fi
747    fi
748  fi
749
750  if test "$XGETTEXT" != "" ; then
751     PO=""
752     if test "$LINGUAS" = ""; then
753           ling=` (cd $srcdir/po; /bin/ls *.po.in) `
754           for l in $ling; do
755                lcode=`basename $l .po.in`
756                LINGUAS="$LINGUAS$lcode "
757           done
758    fi
759    AC_DEFINE(ENABLE_NLS, [1], [NLS Please])
760    echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
761  else
762   LINGUAS=""
763   PO=""
764   echo "xgettext doesn't exist; will not build i18n support"
765   enable_nls=no
766 fi
767 for lang in $LINGUAS; do
768    MOFILES="$MOFILES $lang.mo"
769 done
770 for lang in $LINGUAS; do
771    POFILES="$POFILES $lang.po"
772 done
773 for lang in $LINGUAS; do
774    POIFILES="$POIFILES $lang.po.in"
775 done
776
777AC_SUBST(INTLIBS)
778AC_SUBST(MOFILES)
779AC_SUBST(POFILES)
780AC_SUBST(POIFILES)
781AM_GNU_GETTEXT_VERSION
782AM_GNU_GETTEXT(no-libtool, need-ngettext, \$(top_builddir)/intl/)
783if test "x${shared_libnavit}" = "xyes" -a "x${win32ce}" = "xyes"; then
784        INTLLIBS="\$(top_builddir)/intl/libintl.la"
785        LIBINTL=$INTLLIBS
786        LTLIBINTL=$INTLLIBS
787fi
788AC_SUBST(LIBINTL)
789AC_SUBST(LTLIBINTL)
790if test x"$LIBINTL" != "x" ;then
791        CFLAGS="$CFLAGS -I\$(top_builddir)/intl/"
792fi
793
794fi
795AM_CONDITIONAL(ENABLE_NLS, [test "x$enable_nls" = "xyes"])
796AM_CONDITIONAL(XGETTEXT_GLADE, [test "x$xgettext_glade" = "xyes"])
797AC_CHECK_HEADER(
798        byteswap.h,
799        AC_DEFINE(
800                [HAVE_BYTESWAP_H],
801                [1],
802                [Define to 1 if you have byteswap.h],
803                )
804                ,
805)
806
807PACKAGE=navit
808AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
809AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
810AC_SUBST(PACKAGE)
811AC_SUBST(VERSION)
812
813AC_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")
814AM_CONDITIONAL(SUPPORT_WORDEXP, [test "x$wordexp_h" = "xno"])
815
816support_libc=no
817AC_ARG_ENABLE(support_libc, [  --enable-support-libc enable builtin mini libc ], support_libc=$enableval)
818AM_CONDITIONAL(SUPPORT_LIBC, [test "x$support_libc" = "xyes"])
819if test "x$support_libc" = "xyes"; then
820        CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
821        LIBC_LIBS="-L\$(top_builddir)/navit/support/libc -lsupport_libc"
822fi
823
824## graphics
825AC_ARG_ENABLE(graphics, [  --disable-graphics            disable graphics], graphics=$enableval;graphics_reason="configure parameter")
826AM_CONDITIONAL(GRAPHICS, test "x${graphics}" = "xyes")
827if test "x$graphics" = "xyes"; then
828        AC_DEFINE([USE_GRAPHICS],[1],Define to 1 if you want to use graphics.)
829fi     
830
831# gd
832
833# android
834AC_ARG_ENABLE(graphics-android, [  --disable-graphics-android            disable graphics type android], graphics_android=$enableval;graphics_android_reason="configure parameter")
835AM_CONDITIONAL(GRAPHICS_ANDROID, test "x${graphics_android}" = "xyes")
836# gd
837AC_ARG_ENABLE(graphics-gd, [  --enable-graphics-gd                enable graphics type gd], graphics_gd=$enableval;graphics_gd_reason="configure parameter")
838if test "x${graphics_gd}" = "xyes" ; then
839        if test -z "$GDLIB_CONFIG"; then
840            AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config], [])
841        fi
842        AC_MSG_CHECKING([for gdlib with $GDLIB_CONFIG])
843        if test ! -x "$GDLIB_CONFIG"; then
844            if test "x${GDLIB_CONFIG}" = "x" ; then
845                 graphics_gd_reason="$GDLIB_CONFIG not executable"
846            else
847                 graphics_gd_reason="gdlib-config missing"
848            fi
849            graphics_gd=no
850            AC_MSG_RESULT([no])
851        else
852            if test "x${GD_CFLAGS}" = "x" ; then
853                    GD_CFLAGS="-I`$GDLIB_CONFIG --includedir`"
854            fi
855            if test "x${GD_LIBS}" = "x" ; then
856                    GD_LIBS="-L`$GDLIB_CONFIG --libdir` -lgd `$GDLIB_CONFIG --libs`"
857            fi
858            AC_SUBST(GD_CFLAGS)
859            AC_SUBST(GD_LIBS)
860            AC_MSG_RESULT([yes])
861        fi
862fi
863AM_CONDITIONAL(GRAPHICS_GD, test "x${graphics_gd}" = "xyes")
864AC_CHECK_HEADER(
865        sys/shm.h,
866        AC_DEFINE(
867                [HAVE_SHMEM],
868                [],
869                Define to 1 if you have shared memory
870        )
871)
872AC_CHECK_HEADER(
873        X11/xpm.h,
874        AC_DEFINE(
875                [HAVE_XPM],
876                [],
877                Define to 1 if you have xpm header
878        )
879)
880if test "x${graphics_gd}" = "xyes" ; then
881        save_CPPFLAGS=$CPPFLAGS
882        save_LIBS=$LIBS
883        LIBS="$GD_LIBS $LIBS"
884        CPPFLAGS="$GD_CFLAGS $CPPFLAGS"
885        AC_TRY_LINK([#include <gd.h>], [gdImageCreateFromPng(0);],AC_MSG_RESULT(yes);AC_DEFINE(HAVE_GRAPHICS_GD_PNG, 1, [Define to 1 if you have png support in gd.]),AC_MSG_RESULT(no))
886        CPPFLAGS=$save_CPPFLAGS
887        LIBS=$save_LIBS
888fi
889
890# gtk_drawing_area
891AC_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")
892AM_CONDITIONAL(GRAPHICS_GTK_DRAWING_AREA, [test "x${graphics_gtk_drawing_area}" = "xyes"])
893# null
894AC_ARG_ENABLE(graphics-null, [  --disable-graphics-null            disable graphics type null], graphics_null=$enableval;graphics_null_reason="configure parameter")
895AM_CONDITIONAL(GRAPHICS_NULL, test "x${graphics_null}" = "xyes")
896# win32
897AC_ARG_ENABLE(graphics-win32, [  --disable-graphics-win32            disable graphics type win32], graphics_win32=$enableval;graphics_win32_reason="configure parameter")
898AM_CONDITIONAL(GRAPHICS_WIN32, test "x${graphics_win32}" = "xyes")
899# qt_qpainter
900AC_ARG_ENABLE(graphics-qt-qpainter, [  --disable-graphics-qt-qpainter      disable graphics type qt-qpainter], graphics_qt_qpainter=$enableval;graphics_qt_qpainter_reason="configure parameter")
901if test "x${graphics_qt_qpainter}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
902        PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore],graphics_qt_qpainter=yes,graphics_qt_qpainter=no;graphics_qt_qpainter_reason="Packages QtGui and/or QtCore missing")
903        if test "x${graphics_qt_qpainter}" = "xno"; then
904                PKG_CHECK_MODULES(QT_GUI, [qt-mt],graphics_qt_qpainter=yes;graphics_qt_qpainter_reason="Package qt-mt present",graphics_qt_qpainter=no)
905        fi
906fi
907if test "x${graphics_qt_qpainter}" = "xyes" ; then
908        PKG_CHECK_MODULES(QT_SVG, [QtSvg], have_qt_svg=yes, have_qt_svg=no)
909        if test "x${have_qt_svg}" = "xyes"; then
910                AC_DEFINE([HAVE_QT_SVG],[],Define to 1 if qt supports svg)
911        fi
912fi
913if test "x${graphics_qt_qpainter}" = "xyes" ; then
914        AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
915fi
916AC_SUBST(QT_GUI_CFLAGS)
917AC_SUBST(QT_GUI_LIBS)
918AC_SUBST(QT_SVG_CFLAGS)
919AC_SUBST(QT_SVG_LIBS)
920AM_CONDITIONAL(GRAPHICS_QT_QPAINTER, test "x${graphics_qt_qpainter}" = "xyes")
921MOC=`$PKG_CONFIG QtGui --variable=moc_location`
922if test "x${MOC}" = "x"; then
923        AC_CHECK_PROG(MOC, moc, moc)
924fi
925AC_SUBST(MOC)
926
927
928## map
929# binfile
930AC_ARG_ENABLE(map-binfile, [  --disable-map-binfile            disable map binfile], map_binfile=$enableval;map_binfile_reason="configure parameter")
931AM_CONDITIONAL(MAP_BINFILE, test "x${map_binfile}" = "xyes")
932# filter
933AC_ARG_ENABLE(map-filter, [  --disable-map-filter            disable map filter], map_filter=$enableval;map_filter_reason="configure parameter")
934AM_CONDITIONAL(MAP_FILTER, test "x${map_filter}" = "xyes")
935# mg
936AC_ARG_ENABLE(map-mg, [  --disable-map-mg            disable map mg], map_mg=$enableval;map_mg_reason="configure parameter")
937AM_CONDITIONAL(MAP_MG, test "x${map_mg}" = "xyes")
938# shapefile
939AC_ARG_ENABLE(map-shapefile, [  --disable-map-shapefile            disable map shapefile], map_shapefile=$enableval;map_shapefile_reason="configure parameter")
940AM_CONDITIONAL(MAP_SHAPEFILE, test "x${map_shapefile}" = "xyes")
941# textfile
942AC_ARG_ENABLE(map-textfile, [  --disable-map-textfile            disable map textfile], map_textfile=$enableval;map_textfile_reason="configure parameter")
943AM_CONDITIONAL(MAP_TEXTFILE, test "x${map_textfile}" = "xyes")
944
945## osd
946# core
947AC_ARG_ENABLE(osd-core, [  --disable-osd-core            disable osd core], osd_core=$enableval;osd_core_reason="configure parameter")
948AM_CONDITIONAL(OSD_CORE, test "x${osd_core}" = "xyes")
949
950## gui
951# gtk
952AC_ARG_ENABLE(gui-gtk, [  --disable-gui-gtk                   disable gui type gtk ], gui_gtk=$enableval)
953AM_CONDITIONAL(GUI_GTK, [test "x${gui_gtk}" = "xyes"])
954# internal
955AC_ARG_ENABLE(gui-internal, [  --disable-gui-internal              disable gui type internal], gui_internal=$enableval;gui_internal_reason="configure parameter")
956AM_CONDITIONAL(GUI_INTERNAL, test "x${gui_internal}" = "xyes")
957# win32
958AC_ARG_ENABLE(gui-win32, [  --disable-gui-win32                 disable gui type win32], gui_win32=$enableval;gui_win32_reason="configure parameter")
959AM_CONDITIONAL(GUI_WIN32, test "x${gui_win32}" = "xyes")
960# qml
961AC_ARG_ENABLE(gui-qml, [  --disable-gui-qml              disable gui type QML], gui_qml=$enableval;gui_qml_reason="configure parameter")
962if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}" = "x"; then
963        PKG_CHECK_MODULES(QT_GUI, [QtGui QtCore], ,gui_qml=no;gui_qml_reason="Packages QtGui and/or QtCore are missing")
964fi
965if test "x${gui_qml}" = "xyes" -a "x${QT_XML_CFLAGS}" = "x" -a "x${QT_XML_LIBS}" = "x"; then
966        PKG_CHECK_MODULES(QT_XML, [QtXml], ,gui_qml=no;gui_qml_reason="Package QtXml is missing")
967fi
968if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
969        PKG_CHECK_MODULES(QT_DECLARATIVE, [QtDeclarative >= 4.6.0 ], ,gui_qml=no;gui_qml_reason="Packages QtDeclarative is missing")
970fi
971if test "x${gui_qml}" = "xyes" ; then
972        AC_DEFINE(USE_GUI_QML, 1, [Build with gui qml])
973fi
974AC_SUBST(QT_GUI_CFLAGS)
975AC_SUBST(QT_GUI_LIBS)
976AC_SUBST(QT_DECLARATIVE_CFLAGS)
977AC_SUBST(QT_DECLARATIVE_LIBS)
978AC_SUBST(QT_XML_CFLAGS)
979AC_SUBST(QT_XML_LIBS)
980AM_CONDITIONAL(GUI_QML, test "x${gui_qml}" = "xyes")
981
982## plugins
983# pedestrian
984AC_ARG_ENABLE(plugin-pedestrian, [  --enable-plugin-pedestrian          enable pedestrian plugin], plugin_pedestrian=$enableval;plugin_pedestrian_reason="configure parameter")
985AM_CONDITIONAL(PLUGIN_PEDESTRIAN, test "x${plugin_pedestrian}" = "xyes")
986
987## routing
988AC_ARG_ENABLE(routing, [  --disable-routing            disable routing], routing=$enableval;routing_reason="configure parameter")
989AM_CONDITIONAL(ROUTING, test "x${routing}" = "xyes")
990if test "x$routing" = "xyes"; then
991        AC_DEFINE([USE_ROUTING],[1],Define to 1 if you want to have routing.)
992fi
993
994## speech
995# android
996AC_ARG_ENABLE(speech-android, [  --disable-speech-android            disable speech type android], speech_android=$enableval;speech_android_reason="configure parameter")
997AM_CONDITIONAL(SPEECH_ANDROID, test "x${speech_android}" = "xyes")
998# cmdline
999AC_ARG_ENABLE(speech-cmdline, [  --disable-speech-cmdline            disable speech type cmdline], speech_cmdline=$enableval;speech_cmdline_reason="configure parameter")
1000AM_CONDITIONAL(SPEECH_CMDLINE, test "x${speech_cmdline}" = "xyes")
1001# espeak
1002AC_ARG_ENABLE(speech-espeak, [  --disable-speech-espeak            disable speech type espeak], speech_espeak=$enableval;speech_espeak_reason="configure parameter")
1003AM_CONDITIONAL(SPEECH_ESPEAK, test "x${speech_espeak}" = "xyes")
1004# speech-dispatcher
1005AC_ARG_ENABLE(speech-speech-dispatcher, [  --disable-speech-speech-dispatcher  disable speech type speech-dispatcher], speech_speech_dispatcher=$enableval;speech_speech_dispatcher_reason="configure parameter")
1006if test "x$speech_speech_dispatcher" = "xyes"; then
1007        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")
1008fi
1009AC_SUBST(SPEECHD_CFLAGS)
1010AC_SUBST(SPEECHD_LIBS)
1011AM_CONDITIONAL(SPEECH_SPEECH_DISPATCHER, test "x${speech_speech_dispatcher}" = "xyes")
1012AM_CONDITIONAL(SUPPORT_ESPEAK, test "x${support_espeak}" = "xyes")
1013
1014## vehicle
1015# android
1016AC_ARG_ENABLE(vehicle-android, [  --disable-vehicle-android             disable vehicle type android], vehicle_android=$enableval;vehicle_android_reason="configure parameter")
1017AM_CONDITIONAL(VEHICLE_ANDROID, test "x${vehicle_android}" = "xyes")
1018# demo
1019AC_ARG_ENABLE(vehicle-demo, [  --disable-vehicle-demo              disable vehicle type demo], vehicle_demo=$enableval;vehicle_demo_reason="configure parameter")
1020AM_CONDITIONAL(VEHICLE_DEMO, test "x${vehicle_demo}" = "xyes")
1021# file
1022AC_ARG_ENABLE(vehicle-file, [  --disable-vehicle-file              disable vehicle type file], vehicle_file=$enableval;vehicle_file_reason="configure parameter")
1023AM_CONDITIONAL(VEHICLE_FILE, test "x${vehicle_file}" = "xyes")
1024# gpsd
1025AC_ARG_ENABLE(vehicle-gpsd, [  --disable-vehicle-gpsd              disable vehicle type gpsd], vehicle_gpsd=$enableval;vehicle_gpsd_reason="configure parameter")
1026if test "x${vehicle_gpsd}" = xyes
1027then
1028        PKG_CHECK_MODULES([GPSD], [libgps], have_libgps="yes", have_libgps="no")
1029        if test "x$have_libgps" = "xyes"; then
1030                AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have libgps.)
1031                PKG_CHECK_MODULES([LIBGPS19], [libgps >= 2.90], have_libgps19="yes", have_libgps19="no")
1032                if test "x$have_libgps19" = "xyes"; then
1033                        AC_DEFINE([HAVE_LIBGPS19],[],Define to 1 if you have libgps19.)
1034                fi
1035        else
1036                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 and no gpsd pkgconfig" )
1037        fi
1038fi
1039AC_SUBST(GPSD_CFLAGS)
1040AC_SUBST(GPSD_LIBS)
1041AM_CONDITIONAL(VEHICLE_GPSD, [test "x${vehicle_gpsd}" = "xyes"])
1042# gypsy
1043AC_ARG_ENABLE(vehicle-gypsy,[  --disable-vehicle-gypsy             disable vehicle type gypsy], vehicle_gypsy=$enableval;vehicle_gypsy_reason="configure parameter")
1044if test "x${vehicle_gypsy}" = "xyes"
1045then
1046        PKG_CHECK_MODULES(GYPSY, gypsy, ,vehicle_gypsy=no;vehicle_gypsy_reason="package gypsy missing")
1047fi
1048AC_SUBST(GYPSY_CFLAGS)
1049AC_SUBST(GYPSY_LIBS)
1050AM_CONDITIONAL(VEHICLE_GYPSY, test "x${vehicle_gypsy}" = "xyes")
1051# maemo
1052AC_ARG_ENABLE(vehicle-maemo, [  --disable-vehicle-maemo             disable vehicle type maemo], vehicle_maemo=$enableval;vehicle_maemo_reason="configure parameter")
1053if test "x${vehicle_maemo}" = "xyes" ; then
1054        PKG_CHECK_MODULES(LIBLOCATION, liblocation, [
1055                AC_SUBST(LIBLOCATION_CFLAGS)
1056                AC_SUBST(LIBLOCATION_LIBS)
1057                ], [
1058                AC_MSG_RESULT(no)
1059                vehicle_maemo=no
1060                vehicle_maemo_reason="no maemo location library found"
1061        ])
1062fi
1063AM_CONDITIONAL(VEHICLE_MAEMO, test "x${vehicle_maemo}" = "xyes")
1064# null
1065AC_ARG_ENABLE(vehicle-null, [  --enable-vehicle-null             enable vehicle type null], vehicle_null=$enableval;vehicle_null_reason="configure parameter")
1066AM_CONDITIONAL(VEHICLE_NULL, test "x${vehicle_null}" = "xyes")
1067# wince
1068AC_ARG_ENABLE(vehicle-wince, [  --disable-vehicle-wince             disable vehicle type wince], vehicle_wince=$enableval;vehicle_wince_reason="configure parameter")
1069AM_CONDITIONAL(VEHICLE_WINCE, test "x${vehicle_wince}" = "xyes")
1070# iphone
1071AC_ARG_ENABLE(vehicle-iphone, [  --disable-vehicle-iphone              disable vehicle type iphone], vehicle_iphone=$enableval;vehicle_iphone_reason="configure parameter")
1072AM_CONDITIONAL(VEHICLE_IPHONE, test "x${vehicle_iphone}" = "xyes")
1073if test "x${vehicle_iphone}" = "xyes"
1074then
1075        IPHONE_LIBS=-Wl,-framework,CoreLocation
1076fi
1077AC_SUBST(IPHONE_CFLAGS)
1078AC_SUBST(IPHONE_LIBS)
1079NAVIT_CFLAGS="$NAVIT_CFLAGS $GLIB_CFLAGS $GMODULE_CFLAGS"
1080NAVIT_LIBS="$NAVIT_LIBS $GLIB_LIBS $GMODULE_LIBS $LIBINTL"
1081AC_SUBST(NAVIT_CFLAGS)
1082AC_SUBST(NAVIT_LIBS)
1083AC_SUBST(WORDEXP_LIBS)
1084AC_SUBST(LIBC_LIBS)
1085AC_SUBST(WINDRES)
1086
1087AC_CONFIG_FILES([
1088Makefile
1089navit/Makefile
1090navit/autoload/Makefile
1091navit/autoload/osso/Makefile
1092navit/binding/Makefile
1093navit/binding/python/Makefile
1094navit/binding/dbus/Makefile
1095navit/map/Makefile
1096navit/map/mg/Makefile
1097navit/map/textfile/Makefile
1098navit/map/shapefile/Makefile
1099navit/map/filter/Makefile
1100navit/map/binfile/Makefile
1101navit/map/garmin/Makefile
1102navit/maptool/Makefile
1103navit/fib-1.1/Makefile
1104navit/font/Makefile
1105navit/font/freetype/Makefile
1106navit/fonts/Makefile
1107navit/graphics/Makefile
1108navit/graphics/android/Makefile
1109navit/graphics/gd/Makefile
1110navit/graphics/gtk_drawing_area/Makefile
1111navit/graphics/opengl/Makefile
1112navit/graphics/null/Makefile
1113navit/graphics/sdl/Makefile
1114navit/graphics/qt_qpainter/Makefile
1115navit/graphics/win32/Makefile
1116navit/gui/Makefile
1117navit/gui/gtk/Makefile
1118navit/gui/internal/Makefile
1119navit/gui/win32/Makefile
1120navit/gui/qml/Makefile
1121navit/gui/qml/skins/Makefile
1122navit/gui/qml/skins/navit/Makefile
1123navit/osd/Makefile
1124navit/osd/core/Makefile
1125navit/plugin/Makefile
1126navit/plugin/pedestrian/Makefile
1127navit/speech/Makefile
1128navit/speech/android/Makefile
1129navit/speech/cmdline/Makefile
1130navit/speech/dbus/Makefile
1131navit/speech/espeak/Makefile
1132navit/speech/speech_dispatcher/Makefile
1133navit/support/Makefile
1134navit/support/espeak/Makefile
1135navit/support/ezxml/Makefile
1136navit/support/glib/Makefile
1137navit/support/libc/Makefile
1138navit/support/libpng/Makefile
1139navit/support/win32/Makefile
1140navit/support/wordexp/Makefile
1141navit/support/zlib/Makefile
1142navit/vehicle/Makefile
1143navit/vehicle/android/Makefile
1144navit/vehicle/file/Makefile
1145navit/vehicle/gpsd/Makefile
1146navit/vehicle/gpsd_dbus/Makefile
1147navit/vehicle/gypsy/Makefile
1148navit/vehicle/maemo/Makefile
1149navit/vehicle/null/Makefile
1150navit/vehicle/demo/Makefile
1151navit/vehicle/wince/Makefile
1152navit/vehicle/iphone/Makefile
1153navit/xpm/Makefile
1154navit/maps/Makefile
1155intl/Makefile
1156po/Makefile
1157man/Makefile
1158])
1159#src/data/garmin_img/Makefile
1160
1161AC_OUTPUT
1162
1163
1164echo ""
1165echo ""
1166echo "Summary of your installation :"
1167# FIXME : maybe elaborate missing dependencies
1168if test x"$sdl" != xyes
1169        then
1170        sdl_failures="(libsdl maybe?) "
1171fi
1172if test x"$xmu" != xyes
1173        then               
1174        sdl_failures=$sdl_failures"libxmu "
1175fi       
1176if test x"$glut" != xyes
1177       then
1178        sdl_failures=$sdl_failures"glut "
1179fi
1180if test x"$glc" != xyes
1181        then
1182        sdl_failures=$sdl_failures"quesoglc "
1183fi
1184if test -z "$sdl_failures"
1185        then
1186        echo "OpenGL gui  : ENABLED, with $CEGUI_LIBS"
1187        else
1188                 echo "OpenGL gui  : DISABLED : you are missing $sdl_failures"
1189fi
1190if test x"$enable_hildon" = xyes
1191        then
1192        echo "Maemo/Hildon: ENABLED"
1193        else
1194        echo "Maemo/Hildon: DISABLED"
1195fi
1196if test x"$enable_osso" = xyes
1197        then
1198        echo "Maemo/OSSO: ENABLED"
1199        else
1200        echo "Maemo/OSSO: DISABLED"
1201fi
1202if test x"${USE_GARMIN}" = xyes
1203        then
1204        if test "x$use_libgarmin" = "xyes"
1205                then
1206                echo "Garmin IMG  : ENABLED"
1207                else
1208                echo "Garmin IMG  : DISABLED (you don't have libgarmin)"
1209        fi
1210        else
1211                echo "Garmin IMG  : DISABLED (you requested it)"
1212fi
1213
1214if test x"$LIBINTL" = "x" ;then
1215        nls_libs="system gettext support"
1216else
1217        nls_libs="$LIBINTL"
1218fi
1219echo "Plugins:             $plugins ($plugins_reason)"
1220echo "Postgresql:          $postgresql ($postgresql_reason)"
1221echo "Samplemap:           $samplemap ($samplemap_reason)"
1222echo "NLS Support:         $enable_nls ($nls_libs)"
1223echo "Routing:             $routing ($routing_reason)"
1224echo "Font renderers:"
1225echo "  freetype:          $font_freetype ($font_freetype_reason)"
1226echo "  FriBidi enabled:   $fribidi ($fribidi_reason)"
1227
1228echo "Graphics types: $graphics ($graphics_reason)"
1229echo "  android:  $graphics_android ($graphics_android_reason)"
1230echo "  gtk_drawing_area:  $graphics_gtk_drawing_area ($graphics_gtk_drawing_area_reason)"
1231echo "  null:              $graphics_null ($graphics_null_reason)"
1232echo "  qt_qpainter:       $graphics_qt_qpainter ($graphics_qt_qpainter_reason)"
1233echo "  win32:             $graphics_win32 ($graphics_win32_reason)"
1234echo "  OpenGL:            $graphics_opengl ($graphics_opengl_reason)"
1235echo "  gd:                $graphics_gd ($graphics_gd_reason)"
1236echo "  sdl:               $graphics_sdl ($graphics_sdl_reason)"
1237
1238echo "GUI types:"
1239echo "  gtk:               $gui_gtk ($gui_gtk_reason)"
1240echo "  internal:          $gui_internal ($gui_internal_reason)"
1241echo "  win32:             $gui_win32 ($gui_win32_reason)"
1242echo "  qml:               $gui_qml ($gui_qml_reason)"
1243
1244echo "Map types:"
1245echo "  binfile:           $map_binfile ($map_binfile_reason)"
1246echo "  filter:            $map_filter ($map_filter_reason)"
1247echo "  mg:                $map_mg ($map_mg_reason)"
1248echo "  shapefile:         $map_shapefile ($map_shapefile_reason)"
1249echo "  textfile:          $map_textfile ($map_textfile_reason)"
1250
1251
1252echo "Bindings:"
1253echo "  dbus:              $binding_dbus ($binding_dbus_reason)"
1254echo "  python:            $binding_python ($binding_python_reason)"
1255
1256echo "OSD types:"
1257echo "  core:              $osd_core ($osd_core_reason)"
1258
1259echo "Plugins:"
1260echo "  pedestrian:        $plugin_pedestrian ($plugin_pedestrian_reason)"
1261
1262echo "Speech types:"
1263echo "  android:           $speech_android ($speech_android_reason)"
1264echo "  cmdline:           $speech_cmdline ($speech_cmdline_reason)"
1265echo "  dbus:              $speech_dbus ($speech_dbus_reason)"
1266echo "  espeak:            $speech_espeak ($speech_espeak_reason)"
1267echo "  speech_dispatcher: $speech_speech_dispatcher ($speech_speech_dispatcher_reason)"
1268
1269echo "Vehicle types:"
1270echo "  android:           $vehicle_android ($vehicle_android_reason)"
1271echo "  demo:              $vehicle_demo ($vehicle_demo_reason)"
1272echo "  file:              $vehicle_file ($vehicle_file_reason)"
1273echo "  gpsd:              $vehicle_gpsd ($vehicle_gpsd_reason)"
1274echo "  gpsd_dbus:         $vehicle_gpsd_dbus ($vehicle_gpsd_dbus_reason)"
1275echo "  gypsy:             $vehicle_gypsy ($vehicle_gypsy_reason)"
1276echo "  maemo:             $vehicle_maemo ($vehicle_maemo_reason)"
1277echo "  null:              $vehicle_null ($vehicle_null_reason)"
1278echo "  wince:             $vehicle_wince ($vehicle_wince_reason)"
1279echo "  iphone:            $vehicle_iphone ($vehicle_iphone_reason)"
1280
1281if  test "x${gtk2_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes" -a "x${gui_qml}" != "xyes"
1282then
1283        echo ""
1284        echo ""
1285        echo "*** WARNING! you have no gui that can be built! ***"
1286        echo "Please install the dependency for at least gtk or sdl gui"
1287        echo "For more details, see the wiki at http://wiki.navit-project.org/"
1288        echo ""
1289fi
1290