mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
configure: add --with-gtk option and default to Gtk+ 2.0 while the 3.0 API is still in flux
https://bugzilla.gnome.org/show_bug.cgi?id=634014
This commit is contained in:
parent
c250417078
commit
1ab0aa6544
1 changed files with 11 additions and 2 deletions
13
configure.ac
13
configure.ac
|
@ -206,8 +206,17 @@ AC_SUBST(GSTPB_PREFIX)
|
||||||
|
|
||||||
dnl GTK is optional and used in examples
|
dnl GTK is optional and used in examples
|
||||||
HAVE_GTK=NO
|
HAVE_GTK=NO
|
||||||
PKG_CHECK_MODULES(GTK, gtk+-x11-3.0, HAVE_GTK=yes,
|
AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)])
|
||||||
[PKG_CHECK_MODULES(GTK, gtk+-x11-2.0 >= 2.14.0, HAVE_GTK=yes,HAVE_GTK=no)])
|
AC_ARG_WITH([gtk],
|
||||||
|
AC_HELP_STRING([--with-gtk=3.0|2.0],
|
||||||
|
[which gtk+ version to compile against (default: 2.0)]),
|
||||||
|
[case "$with_gtk" in
|
||||||
|
2.0|3.0) ;;
|
||||||
|
*) AC_MSG_ERROR([invalid gtk+ version specified]);;
|
||||||
|
esac],
|
||||||
|
[with_gtk=2.0])
|
||||||
|
AC_MSG_RESULT([$with_gtk])
|
||||||
|
PKG_CHECK_MODULES(GTK, gtk+-x11-$with_gtk, HAVE_GTK=yes, HAVE_GTK=no)
|
||||||
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
|
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
|
||||||
|
|
||||||
dnl Needed for GtkBuilder to autoconnect signals
|
dnl Needed for GtkBuilder to autoconnect signals
|
||||||
|
|
Loading…
Reference in a new issue