[PATCH 1/3] g3dvl: check for existense of XvMC header/libs

Christian König deathsimple at vodafone.de
Thu Jul 14 03:42:17 PDT 2011


Building the XvMC 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 c3047d6..d8e4e90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1511,7 +1511,7 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 
     if test "x$enable_xvmc" = xauto; then
-        enable_xvmc=yes
+	PKG_CHECK_EXISTS([xvmc], [enable_xvmc=yes], [enable_xvmc=no])
     fi
 
     if test "x$enable_vdpau" = xauto; then
@@ -1523,8 +1523,8 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 fi
 
-#TODO: Check for xvmc libs/headers
 if test "x$enable_xvmc" = xyes; then
+    PKG_CHECK_MODULES([XVMC], [xvmc >= 1.0.6])
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
     HAVE_ST_XVMC="yes"
 fi
-- 
1.7.4.1


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



More information about the mesa-dev mailing list