summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-09-05 14:06:20 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-09 21:29:28 +0100
commitaf2a612912f008d0b65ecc96043ba876c5a0115d (patch)
tree2e4c23f389d7ce5b9ada8e74c6b7159582e4d5a6 /configure.ac
parentb8971318e75b4c9723cdbbd8be2fad03b80a358d (diff)
configure: bail out if building svga without libdrm
With recent commit we removed the NEED_NONNULL_WINSYS checks when selecting the hardware (inc svga) winsys. svga has only one winsys that explicitly requires libdrm (via it's bundled version of vmwgfx_drm.h) but configure.ac never really checks for it. Add the check early to prevent people from shooting themselves when they select the driver but lack libdrm. $ ./autogen.sh --disable-dri --disable-egl --disable-gallium-llvm --with-dri-drivers=swrast --with-gallium-drivers=svga,swrast Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82539 Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 40bb6f93139971a459dadf88d6dfc05791071e37)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dbfc4fc24b6..812cf652aa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1814,6 +1814,9 @@ if test -n "$with_gallium_drivers"; then
case "x$driver" in
xsvga)
HAVE_GALLIUM_SVGA=yes
+ if test "x$have_libdrm" != xyes; then
+ AC_MSG_ERROR([Building svga requires libdrm >= $LIBDRM_REQUIRED])
+ fi
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS svga softpipe"
gallium_require_drm_loader
gallium_check_st "svga/drm" "dri-vmwgfx" ""