summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-06-15 15:38:24 +0000
committerkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-06-15 15:38:24 +0000
commit60a4e7257b55e6361a3842d3859b51c6934982ca (patch)
tree69fb1358f9bc823d9e4810e80d61be24df6220d4
parentc21a50923be3b2217a5578faf07365dc764ea417 (diff)
downloadnavit-svn-60a4e7257b55e6361a3842d3859b51c6934982ca.tar.gz
Added c++ support.
git-svn-id: http://svn.code.sf.net/p/navit/code/branches/sdl/navit@185 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--configure.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 512ee4da..507541f3 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,10 @@ AC_PROG_CC
if eval "test x$GCC = xyes"; then
CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
fi
+AC_PROG_CXX
+if eval "test x$G++ = xyes"; then
+ CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
+ fi
# CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
@@ -14,9 +18,9 @@ pkg_modules="glib-2.0 gtk+-2.0 ORBit-2.0 freetype2"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
-#AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) LIBS="$LIBS -lspeechd", AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
+AC_CHECK_HEADER(libspeechd.h, AC_DEFINE([HAVE_LIBSPEECHD],[],Define to 1 if you have the <libspeechd.h> header file.) LIBS="$LIBS -lspeechd", AC_MSG_WARN([*** no libspeechd.h -- Speech output disabled]))
AC_CHECK_HEADER(gps.h, AC_DEFINE([HAVE_LIBGPS],[],Define to 1 if you have the <gps.h> header file.) LIBS="$LIBS -lgps", AC_MSG_WARN([*** no gps.h -- gpsd support disabled]))
-AC_CHECK_HEADER(SDL/SDL.h, AC_DEFINE([HAVE_LIBSDL],[],Define to 1 if you have the <sdl.h> header file.) LIBS="$LIBS -lSDL -lpthread -lSDL_image -lSDL_gfx -lSDL_ttf -lGL -lGLU -lfreetype -lz", AC_MSG_WARN([*** no sdl.h -- SDL support disabled]))
+AC_CHECK_HEADER(SDL/SDL.h, AC_DEFINE([HAVE_LIBSDL],[],Define to 1 if you have the <sdl.h> header file.) LIBS="$LIBS -lSDL -lpthread -lSDL_mixer -lGL -lGLU -lz", AC_MSG_WARN([*** no sdl.h -- SDL support disabled]))
AC_CONFIG_SUBDIRS(src/fib-1.0)
@@ -25,9 +29,11 @@ Makefile
src/Makefile
src/gui/Makefile
src/gui/gtk/Makefile
+src/gui/sdl/Makefile
src/graphics/Makefile
src/graphics/gtk_drawing_area/Makefile
src/plugins/Makefile
+src/plugins/sdl_music_player/Makefile
src/plugins/poi_geodownload/Makefile
src/plugins/poi_geodownload/libmdb/Makefile
])