aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac9
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index f290d63..c955c6a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,8 @@ SUBDIRS = \
tests \
tools
+DISTCHECK_CONFIGURE_FLAGS = --disable-deprecations
+
DISTCLEANFILES = \
libindicator-*.tar.gz
diff --git a/configure.ac b/configure.ac
index 86eec72..8b4a709 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,15 @@ AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+AC_ARG_ENABLE([deprecations],
+ [AS_HELP_STRING([--enable-deprecations],
+ [allow deprecated API usage @<:@default=yes@:>@])],
+ [],
+ [enable_deprecations=yes])
+AS_IF([test "x$enable_deprecations" = xno],
+ [CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"]
+)
+
##############################
# Dependencies
##############################