Commit 15617314 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

parent cf57f1b2
...@@ -242,7 +242,8 @@ AC_SUBST(GSTPB_PREFIX) ...@@ -242,7 +242,8 @@ AC_SUBST(GSTPB_PREFIX)
dnl GTK is optional and used in examples dnl GTK is optional and used in examples
if test "x$BUILD_EXAMPLES" = "xyes"; then 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_LIBS)
AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_CFLAGS)
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment