[gimp] configure: update checks for "too new" library versions
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] configure: update checks for "too new" library versions
- Date: Sun, 26 May 2013 15:03:33 +0000 (UTC)
commit e76dce1218ed751c0171f489a3242b51ce88b632
Author: Michael Natterer <mitch gimp org>
Date: Sun May 26 16:59:01 2013 +0200
configure: update checks for "too new" library versions
We use them to switch off DISABLE_DEPRECATED defines, so the build
won't break with future library versions.
configure.ac | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5ff4d6f..d649eaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -504,13 +504,13 @@ if test "x$GDBUS_CODEGEN" = xno; then
AC_MSG_ERROR([Could not find gdbus-codegen in your PATH])
fi
-AC_MSG_CHECKING([if GLib is version 2.31.0 or newer])
-if $PKG_CONFIG --atleast-version=2.31.0 glib-2.0; then
- have_glib_2_31=yes
+AC_MSG_CHECKING([if GLib is version 2.39.0 or newer])
+if $PKG_CONFIG --atleast-version=2.39.0 glib-2.0; then
+ have_glib_2_39=yes
else
- have_glib_2_31=no
+ have_glib_2_39=no
fi
-AC_MSG_RESULT($have_glib_2_31)
+AC_MSG_RESULT($have_glib_2_39)
# Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
@@ -545,13 +545,13 @@ if test "x$GDK_PIXBUF_CSOURCE" = xno; then
AC_MSG_ERROR(Could not find gdk-pixbuf-csource in your PATH)
fi
-AC_MSG_CHECKING([if GdkPixbuf is version 2.26.0 or newer])
-if $PKG_CONFIG --atleast-version=2.26.0 gdk-pixbuf-2.0; then
- have_gdk_pixbuf_2_26=yes
+AC_MSG_CHECKING([if GdkPixbuf is version 2.31.0 or newer])
+if $PKG_CONFIG --atleast-version=2.31.0 gdk-pixbuf-2.0; then
+ have_gdk_pixbuf_2_31=yes
else
- have_gdk_pixbuf_2_26=no
+ have_gdk_pixbuf_2_31=no
fi
-AC_MSG_RESULT($have_gdk_pixbuf_2_26)
+AC_MSG_RESULT($have_gdk_pixbuf_2_31)
PKG_CHECK_MODULES(CAIRO, cairo >= cairo_required_version)
@@ -2043,7 +2043,7 @@ CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEA
# We must build without problems with future releases of libraries
# and disabling deprecated API risks breaking the build
-if test "x$have_glib_2_31" != "xyes"; then
+if test "x$have_glib_2_39" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
fi
@@ -2051,7 +2051,7 @@ if test "x$have_gtk_2_26" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
fi
-if test "x$have_gdk_pixbuf_2_26" != "xyes"; then
+if test "x$have_gdk_pixbuf_2_31" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]