aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-11 09:38:43 -0600
committerTed Gould <ted@gould.cx>2010-11-11 09:38:43 -0600
commit75672d53ab18c2e057927e610ea22890fbb102a2 (patch)
tree8b62906375974f2fd492a6c8a05211bd152fdee6 /configure.ac
parent5c848a14979bf12357c88a7e90422d1deb045ed5 (diff)
downloadlibayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.tar.gz
libayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.tar.bz2
libayatana-indicator-75672d53ab18c2e057927e610ea22890fbb102a2.zip
Checking for deprecations and making sure we check on distcheck
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
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
##############################