configure.ac: don't require EGL/DRM and GBM if OpenGL is disabled
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Jan 2016 19:08:46 +0000 (20:08 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 Jan 2016 18:07:03 +0000 (19:07 +0100)
This allows building VDPAU/OMX/VA drivers without OpenGL and its
dependencies.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
configure.ac

index 4172eaeefd9b9bf7384fb9d878c1da738b5339cd..b05f33d43640be0a1d48417c32e697fc18c6bdaa 100644 (file)
@@ -2159,7 +2159,12 @@ gallium_require_drm_loader() {
     fi
 }
 
+dnl This is for Glamor. Skip this if OpenGL is disabled.
 require_egl_drm() {
+    if test "x$enable_opengl" = xno; then
+        return 0
+    fi
+
     case "$with_egl_platforms" in
         *drm*)
             ;;