mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
configure: don't even check for Gtk+ if --disable-examples is specified
There are Gtk+-based examples in plugin dirs and tests/icles/ too, and we want to disable those as well then.
This commit is contained in:
parent
1ab0aa6544
commit
2362acbec3
1 changed files with 13 additions and 11 deletions
|
@ -206,6 +206,7 @@ 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
|
||||||
|
if test "x$BUILD_EXAMPLES" = "xyes"; then
|
||||||
AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)])
|
AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)])
|
||||||
AC_ARG_WITH([gtk],
|
AC_ARG_WITH([gtk],
|
||||||
AC_HELP_STRING([--with-gtk=3.0|2.0],
|
AC_HELP_STRING([--with-gtk=3.0|2.0],
|
||||||
|
@ -217,6 +218,7 @@ AC_ARG_WITH([gtk],
|
||||||
[with_gtk=2.0])
|
[with_gtk=2.0])
|
||||||
AC_MSG_RESULT([$with_gtk])
|
AC_MSG_RESULT([$with_gtk])
|
||||||
PKG_CHECK_MODULES(GTK, gtk+-x11-$with_gtk, HAVE_GTK=yes, HAVE_GTK=no)
|
PKG_CHECK_MODULES(GTK, gtk+-x11-$with_gtk, HAVE_GTK=yes, HAVE_GTK=no)
|
||||||
|
fi
|
||||||
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