mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
vdpau: Fix pkg-config test
If the pkg-config check doesn't succeed, test with the old method instead of bailing out of configure with an error.
This commit is contained in:
parent
f85c84af1f
commit
16124a1c1e
1 changed files with 28 additions and 27 deletions
|
@ -1537,8 +1537,8 @@ AG_GST_CHECK_FEATURE(VDPAU, [VDPAU], vdpau, [
|
||||||
VDPAU_LIBS=-lvdpau
|
VDPAU_LIBS=-lvdpau
|
||||||
HAVE_VDPAU=no
|
HAVE_VDPAU=no
|
||||||
|
|
||||||
PKG_CHECK_MODULES(VDPAU, vdpau, [HAVE_VDPAU="yes"])
|
PKG_CHECK_MODULES(VDPAU, vdpau, [HAVE_VDPAU="yes"],
|
||||||
|
[
|
||||||
if test "$HAVE_VDPAU" = "no"; then
|
if test "$HAVE_VDPAU" = "no"; then
|
||||||
saved_CPPFLAGS="$CPPFLAGS"
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
|
AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
|
||||||
|
@ -1566,6 +1566,7 @@ AG_GST_CHECK_FEATURE(VDPAU, [VDPAU], vdpau, [
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
if test "$HAVE_VDPAU" = "yes"; then
|
if test "$HAVE_VDPAU" = "yes"; then
|
||||||
AC_MSG_NOTICE([Found up to date VDPAU installation])
|
AC_MSG_NOTICE([Found up to date VDPAU installation])
|
||||||
|
|
Loading…
Reference in a new issue