mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
build: configure: delay USE_GTK conditional until check libva-x11
libva-x11 is used for X11 applications, so it is required to build any GTK application. Later, when Wayland test is added, we should change this.
This commit is contained in:
parent
43542a50ab
commit
d506dacc6b
1 changed files with 4 additions and 1 deletions
|
@ -495,7 +495,7 @@ AS_IF([test $USE_GTK -eq 1],
|
||||||
AC_CHECK_HEADERS([gtk/gtk.h], [], [USE_GTK=0])
|
AC_CHECK_HEADERS([gtk/gtk.h], [], [USE_GTK=0])
|
||||||
CPPFLAGS="$saved_CPPFLAGS"
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
])
|
])
|
||||||
AM_CONDITIONAL([USE_GTK], [test $USE_GTK -eq 1])
|
dnl USE_GTK conditional is delayed after being sure to handle X11
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl -- VA-API --
|
dnl -- VA-API --
|
||||||
|
@ -528,6 +528,9 @@ if test $USE_X11 -eq 1; then
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl export USE_GTK after being sure to handle X11
|
||||||
|
AM_CONDITIONAL([USE_GTK], [test $USE_X11 -eq 1 -a $USE_GTK -eq 1])
|
||||||
|
|
||||||
dnl Check for encoding support
|
dnl Check for encoding support
|
||||||
USE_ENCODERS=0
|
USE_ENCODERS=0
|
||||||
if test "x$enable_encoders" = "xyes"; then
|
if test "x$enable_encoders" = "xyes"; then
|
||||||
|
|
Loading…
Reference in a new issue