[gtkmm] Un-invert DISABLE_DEPRECATED_API conditional



commit f9a3c8eee7eda27229c03bebeb548d6576297cd9
Author: Daniel Elstner <danielk openismus com>
Date:   Wed Aug 12 22:42:42 2009 +0200

    Un-invert DISABLE_DEPRECATED_API conditional
    
    * configure.ac (DISABLE_DEPRECATED_API): Invert the accidentally
    reversed test condition for AM_CONDITIONAL().

 ChangeLog    |    7 +++++++
 configure.ac |    7 ++++---
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f34f655..9faeb3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-08-12  Daniel Elstner  <danielk openismus com>
 
+	Un-invert DISABLE_DEPRECATED_API conditional
+
+	* configure.ac (DISABLE_DEPRECATED_API): Invert the accidentally
+	reversed test condition for AM_CONDITIONAL().
+
+2009-08-12  Daniel Elstner  <danielk openismus com>
+
 	Remove header dependency of gdkmm on gtkmm
 
 	* gdk/src/dragcontext.hg: Remove #include <gtkmm/stockid.h>, which
diff --git a/configure.ac b/configure.ac
index cc4179b..681cb61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,17 +81,18 @@ AC_ARG_ENABLE([deprecated-api],
                               [omit deprecated API from the library])],
               [gtkmm_deprecated_api=$enableval],
               [gtkmm_deprecated_api=yes])
-AS_IF([test "x$gtkmm_deprecated_api" = xyes],
+AS_IF([test "x$gtkmm_deprecated_api" != xno],
 [
   AC_MSG_NOTICE([[Deprecated API will be built, for backwards-compatibility.]])
   DISABLE_DEPRECATED_API_CFLAGS=dnl
 ], [
   AC_MSG_WARN([[Deprecated API will not be built, breaking compatibility.
 Do not use this option for distribution packages.]])
-  DISABLE_DEPRECATED_API_CFLAGS='-DATKMM_DISABLE_DEPRECATED=1 -DGDKMM_DISABLE_DEPRECATED=1 -DGTKMM_DISABLE_DEPRECATED=1'dnl
+  DISABLE_DEPRECATED_API_CFLAGS='dnl
+-DATKMM_DISABLE_DEPRECATED=1 -DGDKMM_DISABLE_DEPRECATED=1 -DGTKMM_DISABLE_DEPRECATED=1'dnl
 ])
 AC_SUBST([DISABLE_DEPRECATED_API_CFLAGS])
-AM_CONDITIONAL([DISABLE_DEPRECATED_API], [test "x$gtkmm_deprecated_api" = xyes])
+AM_CONDITIONAL([DISABLE_DEPRECATED_API], [test "x$gtkmm_deprecated_api" = xno])
 
 # Offer the ability to omit some API from the library, to reduce the code size.
 # Note that there are other options in glibmm, which affect gtkmm.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]