[PATCH 2/3] g3dvl: check for existense of VDPAU header/libs

Christian König deathsimple at vodafone.de
Thu Jul 14 04:57:23 PDT 2011


Building the VDPAU state tracker only works when the header/libs are available.
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index d8e4e90..c469645 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1515,7 +1515,7 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 
     if test "x$enable_vdpau" = xauto; then
-        enable_vdpau=yes
+	PKG_CHECK_EXISTS([vdpau], [enable_vdpau=yes], [enable_vdpau=no])
     fi
 
     if test "x$enable_va" = xauto; then
@@ -1529,8 +1529,8 @@ if test "x$enable_xvmc" = xyes; then
     HAVE_ST_XVMC="yes"
 fi
 
-#TODO: Check for vdpau libs/headers
 if test "x$enable_vdpau" = xyes; then
+    PKG_CHECK_MODULES([VDPAU], [vdpau >= 0.4.1])
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS vdpau"
     HAVE_ST_VDPAU="yes"
 fi
-- 
1.7.4.1


--=-OOx/P9Hynt3ifJEBZEZV
Content-Disposition: attachment; filename="0003-g3dvl-check-for-existense-of-VA-API-header-libs.patch"
Content-Type: text/x-patch; name="0003-g3dvl-check-for-existense-of-VA-API-header-libs.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



More information about the mesa-dev mailing list