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:01:52 +02:00
parent cf57f1b220
commit 15617314f2

View file

@ -242,7 +242,8 @@ AC_SUBST(GSTPB_PREFIX)
dnl GTK is optional and used in examples
if test "x$BUILD_EXAMPLES" = "xyes"; then
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no)
PKG_CHECK_MODULES(GTK, gtk+-3.0, HAVE_GTK=yes,
[PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no)])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
fi