configure.ac: enable EGL platform DRM if GBM is enabled
authorMarek Olšák <marek.olsak@amd.com>
Tue, 18 Oct 2016 21:20:29 +0000 (23:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 19 Oct 2016 21:19:16 +0000 (23:19 +0200)
since GBM is enabled by default, this is also enabled by default

the whitespace changes remove tabs

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 6f6e388caca3637a62a25d0b6406bada90bc34aa..797c2de616315d7eafe90c1f9b649e8c4f2b9490 100644 (file)
@@ -2017,9 +2017,13 @@ AC_ARG_WITH([egl-platforms],
         "x11,drm" @<:@default=auto@:>@])],
     [with_egl_platforms="$withval"],
     [if test "x$enable_egl" = xyes; then
-       with_egl_platforms="x11"
+        if test "x$enable_gbm" = xyes; then
+           with_egl_platforms="x11,drm"
+        else
+           with_egl_platforms="x11"
+        fi
     else
-       with_egl_platforms=""
+        with_egl_platforms=""
     fi])
 
 if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then