AC_INIT(Makefile.am)
-AM_INIT_AUTOMAKE(hildon-libs, 0.12.2)
+AM_INIT_AUTOMAKE(hildon-libs, 0.12.11)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PROG_LIBTOOL
AC_HEADER_STDC
-PKG_CHECK_MODULES(OUTO, outo >= 0.1.1)
-AC_SUBST(OUTO_CFLAGS)
+
+
+#PKG_CHECK_MODULES(OUTO, outo >= 0.1.1)
+#AC_SUBST(OUTO_CFLAGS)
CFLAGS="$CFLAGS -std=c99 -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
# -Werror disabled due to the flaw in glib-2.0
# See http://bugzilla.gnome.org/show_bug.cgi?id=310175 and
# http://bugzilla.gnome.org/show_bug.cgi?id=310216
-GTK_VERSION=2.6.4
+GTK_VERSION=2.6.10
PKG_CHECK_MODULES(GTK, gtk+-2.0)
AC_SUBST(GTK_LIBS)
AC_SUBST(localedir)
AC_SUBST(outomoduledir)
+
+# Disable rebuild of glib-mkenum -generated source code:
+AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes)
+
+# define a MAINT-like variable REBUILD which is set if Perl
+# is found, so autogenerated sources can be rebuilt
+AC_CHECK_PROGS(PERL, perl5 perl)
+
+REBUILD=\#
+if test "x$enable_rebuilds" = "xyes" && \
+ test -n "$PERL" && \
+ $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
+ REBUILD=
+fi
+AC_SUBST(REBUILD)
+
+
AC_OUTPUT(Makefile \
hildon-widgets/Makefile \
timer/Makefile \