AC_MSG_CHECKING(for system)
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))
-AC_ARG_ENABLE(directfb, [ --enable-directfb enable directfb gui and graphics], MODULE_DIRECTFB=$enableval, MODULE_DIRECTFB=no)
-
-if test "x$MODULE_DIRECTFB" = "xyes"; then
- PKG_CHECK_MODULES(DIRECTFB, [directfb], [directfb_pkgconfig=yes], [directfb_pkgconfig=no])
- if test "x$directfb_pkgconfig" = "xyes"; then
- AC_DEFINE(HAVE_DIRECTFB, 1, [Define to 1 if you have directfb])
- fi
-fi
-
-DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
-
-#DIRECTFB_CFLAGS="-D_REENTRANT -I/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/include/directfb/"
-#DIRECTFB_LIBS="-L/data/oe/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/ -ldirectfb -lfusion -ldirect -lpthread"
-
-AC_SUBST(DIRECTFB_CFLAGS)
-AC_SUBST(DIRECTFB_LIBS)
-AM_CONDITIONAL(DIRECTFB, [test "x$directfb_pkgconfig" = "xyes"])
-
-
AC_ARG_ENABLE(graphics-sdl, [ --disable-graphics-sdl don't create graphics sdl], enable_graphics_sdl=$enableval, enable_graphics_sdl=yes)
if test "x${enable_graphics_sdl}" = "xyes" ; then
if test -z "$SDL_CONFIG"; then
)
fi
-PKG_CHECK_MODULES(
- [CEGUI],
- [CEGUI-OPENGL >= 0.5.0],
- [
- AC_DEFINE(
- [HAVE_CEGUI],
- [],
- [Define to 1 if you have the @<:@CEGUI/CEGUI.h@:>@ header file.])
- cegui=yes
- ],
- [AC_MSG_WARN([*** CEGUI not found -- SDL support disabled])]
-)
-
AC_CHECK_HEADER(
X11/Xmu/Xmu.h,
AC_DEFINE(
AC_SUBST(GLC_LIBS)
fi
-if test x"$cegui" = xyes
- then
- # Save the LIBS into a temp var since AC_CHECK_LIB adds the lib into LIBS
- # and we want just to check and use CEGUI_LIBS
- libstemp="$LIBS"
- # For CEGUI, we have to check the presence of some libraries.
- # The following are mandatory (used by navit)
- # If the user installed NavIt without, issue a warning and disable CEGUI
- AC_CHECK_LIB(CEGUIBase, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIBase. Do you have at least cegui-0.5?"
- ])
- AC_CHECK_LIB(CEGUIOpenGLRenderer, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIOpenGLRenderer. Do you have at least cegui-0.5? "
- ], $OPENGL_LIBS )
- AC_CHECK_LIB(CEGUIFalagardWRBase, main,
- [],
- [
- echo "Error! Something is wrong with CEGUIFalagardWRBase. Do you have at least cegui-0.5?"
- ], $OPENGL_LIBS)
- CEGUI_LIBS="-lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUIFalagardWRBase"
-
- # The following are optional, but we need to link against them if cegui was built with them
- AC_CHECK_LIB(CEGUIXercesParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIXercesParser"],
- [echo "CEGUIXercesParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUIExpatParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUIExpatParser"],
- [echo "CEGUIExpatParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUILibxmlParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUILibxmlParser"],
- [echo "CEGUILibxmlParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUITinyXMLParser, main,
- [CEGUI_LIBS="$CEGUI_LIBS -lCEGUITinyXMLParser"],
- [echo "CEGUITinyXMLParser not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUIDevILImageCodec, main,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUIDevILImageCodec"
- AC_DEFINE([HAVE_LIBCEGUIDEVILIMAGECODEC],[1],Define to 1 to use DevIL codec)
- ],
- [echo "CEGUIDevILImageCodec not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- AC_CHECK_LIB(CEGUITGAImageCodec, createImageCodec,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUITGAImageCodec"
- AC_DEFINE(HAVE_LIBCEGUITGAIMAGECODEC,[1],Define to 1 to use the TGA codec)
- ],
- [echo "GUITGAImageCodec not found/not working, disabled."],
- $OPENGL_LIBS
- )
-
- libssilly="$OPENGL_LIBS -lpng"
- AC_CHECK_LIB(CEGUISILLYImageCodec, createImageCodec,
- [
- CEGUI_LIBS="$CEGUI_LIBS -lCEGUISILLYImageCodec"
- AC_DEFINE([HAVE_LIBCEGUISILLYIMAGECODEC],[1],Define to 1 to use SILLY codec)
- ],
- [echo "CEGUISILLYImageCodec not found/not working, disabled."],
- $libssilly
- )
- # Restore the libs
- LIBS="$libstemp"
- echo "CEGUI_LIBS : $CEGUI_LIBS"
- fi
-
-AC_SUBST(CEGUI_CFLAGS)
-AC_SUBST(CEGUI_LIBS)
-
-AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
+AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" -a "x$xmu" = "xyes" ])
AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$glut" = "xyes" - "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
-AC_ARG_ENABLE(gui-clutter, [ --disable-gui-clutter don't create gui clutter ], MODULE_GUI_CLUTTER=$enableval, MODULE_GUI_CLUTTER=yes)
-if test "x$MODULE_GUI_CLUTTER" = "xyes"; then
- PKG_CHECK_MODULES(CLUTTER, [clutter-0.8], [clutter_pkgconfig=yes], [clutter_pkgconfig=no])
- if test "x$clutter_pkgconfig" = "xyes"; then
- AC_DEFINE(HAVE_CLUTTER, 1, [Define to 1 if you have clutter])
- fi
-fi
-
-AC_SUBST(CLUTTER_CFLAGS)
-AC_SUBST(CLUTTER_LIBS)
-AM_CONDITIONAL(GUI_CLUTTER, [test "x$clutter_pkgconfig" = "xyes" -a "x$glc" = "xyes" ])
-
-
-
if test x"${USE_GARMIN}" = xyes
then
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")
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="")
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="")
+AC_ARG_WITH(svg2png-use-convert, [ --with-svg2png-use-convert use imagemagick's convert for png creation], SVG2PNG_CONVERTER="convert")
+AC_ARG_WITH(svg2png-use-rsvg-convert, [ --with-svg2png-use-rsvg-convert use librsvg's rsvg-convert for png creation], SVG2PNG_CONVERTER="rsvg-convert")
+AC_ARG_WITH(svg2png-use-inkscape, [ --with-svg2png-use-inkscape use inkscapes internal convert routines for png creation], SVG2PNG_CONVERTER="inkscape")
+AC_ARG_WITH(svg2png-use-ksvgtopng4, [ --with-svg2png-use-ksvgtopng4 use kde4's ksvgtopng4 for png creation], SVG2PNG_CONVERTER="ksvgtopng4")
+AC_ARG_WITH(svg2png-use-ksvgtopng, [ --with-svg2png-use-ksvgtopng use kde3's convert for png creation], SVG2PNG_CONVERTER="ksvgtopng")
if test "x${enable_svg2png}" = "xyes" ; then
- AC_PATH_PROGS([SVG2PNG], [ksvgtopng ksvgtopng4 rsvg-convert inkscape], [none])
- if test "x${SVG2PNG}" = "xnone"; then
- enable_svg2png="no"
- fi
+ if test "x${SVG2PNG_CONVERTER}" = "x"; then
+ SVG2PNG_CONVERTER="ksvgtopng ksvgtopng4 rsvg-convert inkscape convert"
+ fi
+ AC_PATH_PROGS([SVG2PNG], "${SVG2PNG_CONVERTER}", [none])
+ if test "x${SVG2PNG}" = "xnone"; then
+ enable_svg2png="no"
+ fi
fi
AC_SUBST(SVG2PNG)
AC_SUBST(SVG2PNG_SCALES)
navit/graphics/Makefile
navit/graphics/gd/Makefile
navit/graphics/gtk_drawing_area/Makefile
-navit/graphics/directfb/Makefile
navit/graphics/cogl/Makefile
navit/graphics/opengl/Makefile
navit/graphics/null/Makefile
navit/gui/Makefile
navit/gui/gtk/Makefile
navit/gui/internal/Makefile
-navit/gui/clutter/Makefile
-navit/gui/cegui/Makefile
-navit/gui/cegui/datafiles/Makefile
-navit/gui/directfb/Makefile
navit/gui/win32/Makefile
navit/osd/Makefile
navit/osd/core/Makefile
then
sdl_failures=$sdl_failures"quesoglc "
fi
-if test x"$cegui" != xyes
- then
- sdl_failures=$sdl_failures"cegui-devel >= 0.5 "
-fi
if test -z "$sdl_failures"
then
echo "OpenGL gui : ENABLED, with $CEGUI_LIBS"
else
echo "OpenGL gui : DISABLED : you are missing $sdl_failures"
fi
-if test x"$directfb_pkgconfig" = xyes
- then
- echo "DIRECTFB : ENABLED"
- else
- echo "DIRECTFB : DISABLED"
-fi
-if test x"$clutter_pkgconfig" = xyes
- then
- echo "Clutter gui : ENABLED"
- else
- echo "Clutter gui : DISABLED"
-fi
if test x"$enable_hildon" = xyes
then
echo "Maemo/Hildon: ENABLED"
echo " gypsy: $vehicle_gypsy ($vehicle_gypsy_reason)"
echo " wince: $vehicle_wince ($vehicle_wince_reason)"
-if test "x${gtk2_pkgconfig}" != "xyes" -a "x${sdl}" != "xyes" -a "x${directfb_pkgconfig}" != "xyes" -a "x${gui_win32}" != "xyes" -a "x${gui_internal}" != "xyes"
then
echo ""
echo ""