summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-08-24 22:55:20 +0200
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-08-24 22:55:20 +0200
commitdd8325323bfcca1f742e864ca7d87101a0d59936 (patch)
treeedc288a7bb529d652a9ce2a9e370bf6519601153 /configure.ac
parent425940be1d894459cead9aaf211a74338480aaa3 (diff)
tests: disable nouveau if unavailable
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 74aa1012..ddc59fd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,7 +60,9 @@ PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.38 libdrm])
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
# for dma-buf tests
-PKG_CHECK_MODULES(DRM_NOUVEAU, [libdrm_nouveau >= 2.4.33])
+PKG_CHECK_MODULES(DRM_NOUVEAU, [libdrm_nouveau >= 2.4.33], nouveau=yes, nouveau=no)
+
+AM_CONDITIONAL(BUILD_NOUVEAU, [test "x$nouveau" != xno])
# for testdisplay
PKG_CHECK_MODULES(CAIRO, cairo)