[gimp/gtk3-port: 197/227] configure.ac: use the new GTK_CHECK_BACKEND() macro
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 197/227] configure.ac: use the new GTK_CHECK_BACKEND() macro
- Date: Mon, 10 Feb 2014 22:09:35 +0000 (UTC)
commit 1e2d9b7ff4d16d1f492fd2a696757b9a31c5adc3
Author: Michael Natterer <mitch gimp org>
Date: Wed Feb 16 20:49:33 2011 +0100
configure.ac: use the new GTK_CHECK_BACKEND() macro
so GTK+ target detection works again.
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3bacd57..0f65222 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1017,11 +1017,12 @@ fi
################################
# Check if building for GTK+-X11
-gdk_target=`$PKG_CONFIG --variable=target gtk+-3.0`
+GTK_CHECK_BACKEND([x11], [gtk_required_version],
+ [have_gtk_x11=yes], [have_gtk_x11=no])
-have_libxmu="no (building for $gdk_target)"
+have_libxmu="no (building for `pkg-config --variable=targets gtk-3.0`)"
-if test "$gdk_target" = x11; then
+if test "x$have_gtk_x11" = "xyes"; then
# doc-shooter is X11 specific
DOC_SHOOTER=doc-shooter
@@ -1328,7 +1329,7 @@ gimp_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $X_CFLAGS"
gimp_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"
-if test "$gdk_target" = x11; then
+if test "x$have_gtk_x11" = "xyes"; then
lib_X11=-lX11
fi
have_libxpm=no
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]