[gnome-menus] misc: Rename --enable-deprecations to --enable-deprecation-flags



commit 90a58de1f3a7381b26206be39624a3d40d8ffb07
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Sep 27 12:29:45 2010 +0200

    misc: Rename --enable-deprecations to --enable-deprecation-flags
    
    This is a better name for this configure option, since it's really about
    enabling the use of the deprecation flags, not allowing the use of
    deprecated API.

 configure.ac |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a6eb61f..3664298 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,16 +47,15 @@ AC_SUBST(GLIB_LIBS)
 
 GNOME_COMPILE_WARNINGS(yes)
 
-AC_ARG_ENABLE(deprecations,
-              [AC_HELP_STRING([--enable-deprecations],
-                              [warn about deprecated usages @<:@default=no@:>@])],,
-              [enable_deprecations=no])
+AC_ARG_ENABLE(deprecation_flags,
+              [AC_HELP_STRING([--enable-deprecation-flags],
+                              [use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,
+              [enable_deprecation_flags=no])
 
-DISABLE_DEPRECATED_CFLAGS=
-if test "x$enable_deprecations" = "xyes"; then
+if test "x$enable_deprecation_flags" = "xyes"; then
    DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED
+   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi
-AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 
 dnl --enable-debug=(yes|minimum|no)
 AC_ARG_ENABLE(debug,
@@ -166,7 +165,7 @@ echo "
         compiler:                     ${CC}
         cflags:                       ${CFLAGS}
         Maintainer mode:              ${USE_MAINTAINER_MODE}
-        Warn about deprecations:      ${enable_deprecations}
+        Use *_DISABLE_DEPRECATED:     ${enable_deprecation_flags}
 
         Turn on debugging:            ${enable_debug}
         Build python bindings:        ${have_python}



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