If deprecated API is found, for which the replacement is in
a newer version of GLib than we currently depend on, use
the new API in a #if GLIB_CHECK_VERSION block and remove
that block after depending on a new enougb GLib version.
Fixes bug #605100.
dnl when using threading primitives)
GLIB_CFLAGS="$GLIB_CFLAGS -DG_THREADS_MANDATORY"
+ dnl Define G_DISABLE_DEPRECATED for GIT versions
+ if test "x$PACKAGE_VERSION_NANO" = "x1"; then
+ GLIB_CFLAGS="$GLIB_CFLAGS -DG_DISABLE_DEPRECATED"
+ fi
+
AC_ARG_ENABLE(gobject-cast-checks,
AS_HELP_STRING([--enable-gobject-cast-checks[=@<:@no/auto/yes@:>@]],
[Enable GObject cast checks]),,