[gthumb] Added a --disable-deprecated option to configure
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb] Added a --disable-deprecated option to configure
- Date: Sat, 23 Jan 2010 11:02:14 +0000 (UTC)
commit 7a6cb0ba5d4e397f1e1efb6e383b265144d2b3bc
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jan 23 11:57:49 2010 +0100
Added a --disable-deprecated option to configure
It's not possible to always disable deprecated API usage because
new library versions can add new deprecated API.
[bug #607757]
configure.ac | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e3aff44..64c0de5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,8 +49,17 @@ UNIQUE_REQUIRED=1.1.2
dnl ===========================================================================
CFLAGS=${CFLAGS-:""}
-CFLAGS+=" -DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
-CFLAGS+=" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+
+AC_ARG_ENABLE(deprecated,
+ AS_HELP_STRING([--disable-deprecated], [do not use deprecated API]),
+ disable_deprecated=yes,
+ disable_deprecated=no)
+if test x$disable_deprecated = xyes; then
+ CFLAGS+=" -DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
+ CFLAGS+=" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+fi
+
+dnl ===========================================================================
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable compilation of debugging messages]),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]