st/mesa: automake: honour the vdpau header install location
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 16 Apr 2017 14:46:28 +0000 (15:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Apr 2017 11:19:46 +0000 (12:19 +0100)
If VDPAU is installed in the non-default location, we'll fail to find
the headers and error at build time.

../../src/gallium/include/state_tracker/vdpau_dmabuf.h:37:25: fatal error: vdpau/vdpau.h: No such file or directory
 #include <vdpau/vdpau.h>
                         ^

Fixes: faba96bc60b ("st/vdpau: add new interop interface")
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/Makefile.am

index 9710c7f0941aaf649f712edde3daebcc35412c15..53f311d2a979e483e35c3bd473abce95fce0a363 100644 (file)
@@ -96,6 +96,7 @@ endif
 
 AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
 AM_CFLAGS = \
+       $(VDPAU_CFLAGS) \
        $(LLVM_CFLAGS) \
        $(VISIBILITY_CFLAGS) \
        $(MSVC2013_COMPAT_CFLAGS)