--- navit.old/configure.in	2007-11-03 19:26:39.000000000 -0300
+++ navit/configure.in	2007-11-07 17:59:05.000000000 -0300
@@ -27,6 +27,20 @@
 AC_ARG_ENABLE(avoid-float, [  --enable-avoid-float              avoid floating point calculations], AVOID_FLOAT=$enableval, AVOID_FLOAT=no)
 test x"${AVOID_FLOAT}" = xyes && AC_DEFINE(AVOID_FLOAT,[],Define to avoid floating point)
 
+AC_ARG_ENABLE(hildon, [  --enable-hildon              build with maemo/hildon support], enable_hildon=$enableval, enable_hildon=no)
+if test "x${enable_hildon}" = "xyes" ; then
+	PKG_CHECK_MODULES(enable_hildon, hildon-libs >= 0.12.24, , [
+		AC_MSG_RESULT(no)
+		enable_hildon=no
+	])
+	if test x"${enable_hildon}" = xyes ; then
+		AC_DEFINE(USE_HILDON, 1, [Build with maemo/hildon support])
+		AC_SUBST(HILDON_CFLAGS)
+		AC_SUBST(HILDON_LIBS)
+	fi
+fi
+AM_CONDITIONAL(USE_HILDON, test "${enable_hildon}" = "xyes")
+
 AC_ARG_ENABLE(libgps, [  --disable-libgps             don't use libgps], USE_LIBGPS=$enableval, USE_LIBGPS=yes)
 AC_PATH_X
 if test x"$have_x" != xyes; then
@@ -406,6 +421,13 @@
 	else
 	echo "SDL gui     : DISABLED : you are missing a dependency"
 fi
+if test x"$enable_hildon" = xyes
+        then
+        echo "Maemo/Hildon: ENABLED"
+        else
+        echo "Maemo/Hildon: DISABLED"
+fi
+
 if test x"$gpsd" = xyes
 	then
 	echo "GPS support : ENABLED"
