summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRen, Zhaohan <zhaohan.ren@intel.com>2009-03-26 02:45:35 +0800
committerRen, Zhaohan <zhaohan.ren@intel.com>2009-03-26 02:45:35 +0800
commit66d79252f7e4b7c5894c1fd6272470d8c6c893ba (patch)
tree395708569fc00e38b0161794e427e6c1ad8e743b
parentfaef48a11e0a2ee905dee91e65ce833ca9c297a4 (diff)
patch 105_libdrm_headers_check.patch
-rw-r--r--configure.ac7
-rw-r--r--src/Makefile.am5
2 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 48125fe..7d317b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,12 @@ PKG_CHECK_MODULES([XEXT], [xext])
PKG_CHECK_MODULES([Xfixes], [xfixes])
PKG_CHECK_MODULES([XDAMAGE], [xdamage])
PKG_CHECK_MODULES([DRM], [libdrm])
-#PKG_CHECK_MODULES([libva_la], [libdrm])
+PKG_CHECK_MODULES(LIBDRM_DEPS, [libdrm])
+
+# We only need the headers, we don't link against the DRM libraries
+LIBVA_CFLAGS="$LIBDRM_DEPS_CFLAGS"
+AC_SUBST(LIBVA_CFLAGS)
+AC_SUBST(LIBVA_LIBS)
pkgconfigdir=${libdir}/pkgconfig
AC_SUBST(pkgconfigdir)
diff --git a/src/Makefile.am b/src/Makefile.am
index cb0ac94..5c5a1b2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,10 +20,13 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+INCLUDES = \
+ $(LIBVA_CFLAGS)
+
libva_la_LTLIBRARIES = libva.la
libva_ladir = $(libdir)
libva_la_LDFLAGS = -version-number 0:30:0 -no-undefined
-libva_la_LIBADD = -ldl -lX11 -lXext -lXfixes -lXdamage -lXv -lXrandr X11/libva_X11.la
+libva_la_LIBADD = $(LIBVA_LIBS) -ldl -lX11 -lXext -lXfixes -lXdamage -lXv -lXrandr X11/libva_X11.la
SUBDIRS = X11