g3dvl: check for existense of VDPAU header/libs
authorChristian König <deathsimple@vodafone.de>
Thu, 14 Jul 2011 11:57:23 +0000 (13:57 +0200)
committerChristian König <deathsimple@vodafone.de>
Thu, 14 Jul 2011 13:36:24 +0000 (15:36 +0200)
Building the VDPAU state tracker only works when the header/libs are available.

configure.ac

index 4f4730218531f1369631428a31b3dc3ae129a44e..75b9510f61ea51c8592889dd59e131c006c98bc3 100644 (file)
@@ -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