summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-12-20 16:37:45 +0100
committerinfirit <[email protected]>2014-01-15 16:15:03 +0100
commit8487a25cd8e68505bcfdee5d2cf2622568d6976d (patch)
treee50c064813827312b4d5d73d2d41982fc884c102
parentd94160e0012295b02a10bfd1d933e644ab7889d5 (diff)
downloadmate-power-manager-8487a25cd8e68505bcfdee5d2cf2622568d6976d.tar.bz2
mate-power-manager-8487a25cd8e68505bcfdee5d2cf2622568d6976d.tar.xz
Reverse configure logic for --enable-deprecated
And just set DISABLE_DEPRECATED to an empty string.
-rw-r--r--configure.ac13
1 files changed, 2 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index c5bd72f..9551e3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,17 +49,8 @@ AC_ARG_ENABLE(deprecated,
[Warn about deprecated usages [default=no]])],,
[enable_deprecated=no])
-if test "x$enable_deprecated" = "xno"; then
- DISABLE_DEPRECATED=" \
- -DG_DISABLE_SINGLE_INCLUDES \
- -DGTK_DISABLE_SINGLE_INCLUDES \
- -DG_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_MULTIHEAD_SAFE \
- -DGTK_MULTIHEAD_SAFE \
- -DGSEAL_ENABLE"
-
+if test "x$enable_deprecated" = "xyes"; then
+ DISABLE_DEPRECATED=""
CPPFLAGS="$CPPFLAGS $DISABLE_DEPRECATED"
fi