+dnl ------------------
+dnl | Pkgconfig checks |---------------------------------------
+dnl ------------------
+
+PKG_CHECK_MODULES(PACKAGE, [
+ glib-2.0 >= 2.12
+ gthread-2.0 >= 2.2
+ gtk+-2.0 >= 2.12
+ gio-2.0 >= 2.12
+])
+
+AC_SUBST(PACKAGE_CFLAGS)
+AC_SUBST(PACKAGE_LIBS)
+
+dnl -------------
+dnl | User Manual |---------------------------------------
+dnl -------------
+GNOME_DOC_INIT
+
+dnl ---------------------------------------------------------------------------
+dnl - Use deprecated options (default enabled for devs, disabled in releases)
+dnl ---------------------------------------------------------------------------
+
+AC_ARG_ENABLE(deprecations,
+ [AC_HELP_STRING([--enable-deprecations],
+ [warn about deprecated usages [default=no]])],
+ [ac_cv_enable_deprecations=$enableval],
+ [ac_cv_enable_deprecations=no])
+AC_CACHE_CHECK([whether to enable deprecated features],
+ [ac_cv_enable_deprecations], [ac_cv_enable_deprecations=no])
+
+if test "x$ac_cv_enable_deprecations" = "xyes"; then
+ DISABLE_DEPRECATED_CFLAGS="\
+-DG_DISABLE_SINGLE_INCLUDES \
+-DGSEAL_ENABLE \
+-DG_DISABLE_DEPRECATED \
+-DGDK_DISABLE_DEPRECATED \
+-DGDK_PIXBUF_DISABLE_DEPRECATED \
+-DGTK_DISABLE_SINGLE_INCLUDES \
+-DGTK_DISABLE_DEPRECATED"
+ CPPFLAGS="$CPPFLAGS $DISABLE_DEPRECATED_CFLAGS"
+fi