Description: Fix the build with GLib 2.26 and later.
Forwarded: no
Author: Cyril Brulebois <kibi@debian.org>
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2015-09-15

--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@
 esac], [werr=false])
 
 if test x$werr = xtrue; then
-   AM_CFLAGS="$AM_CFLAGS -Werror"
+   AM_CFLAGS="$AM_CFLAGS -Werror -Wno-error=deprecated-declarations"
 fi
 
 dnl i18n stuff
@@ -111,7 +111,7 @@
 AM_CONDITIONAL(MAKE_GUILE, test x$wguile = xtrue)
 
 LIBS="$LIBS $GLIB_LIBS"
-AM_CFLAGS="$AM_CFLAGS $GLIB_CFLAGS -DG_DISABLE_DEPRECATED"
+AM_CFLAGS="$AM_CFLAGS $GLIB_CFLAGS"
 
 dnl Check if the gtk gui is required
 AC_ARG_ENABLE(gui,
@@ -130,10 +130,6 @@
                   gui=false])
 fi
 
-if test x$gui = xtrue; then
-AM_CFLAGS="$AM_CFLAGS -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
-fi
-
 dnl Are we in a darwin system?
 case "${host_os}" in
  darwin*) darwin_system=true;;
