configure: Check for GTK+ 3.0 and if it's not available for GTK+ 2.0

This commit is contained in:
Sebastian Dröge 2010-05-11 10:04:50 +02:00
parent 96b296e6b6
commit c2513b374a

View file

@ -209,7 +209,8 @@ AC_SUBST(GSTPB_PREFIX)
dnl GTK is optional and used in examples
HAVE_GTK=NO
PKG_CHECK_MODULES(GTK, gtk+-x11-2.0 >= 2.12.0, HAVE_GTK=yes, HAVE_GTK=no)
PKG_CHECK_MODULES(GTK, gtk+-x11-3.0, HAVE_GTK=yes,
[PKG_CHECK_MODULES(GTK, gtk+-x11-2.0 >= 2.12.0, HAVE_GTK=yes,HAVE_GTK=no)])
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
dnl Needed for GtkBuilder to autoconnect signals