From: Marek Olšák <marek.ol...@amd.com>

This is required by radeonsi.

The code was moved because with_egl_platforms was used before
the default was set.
---
 configure.ac | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 84b404e..dbe590f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -763,6 +763,16 @@ AC_ARG_ENABLE([egl],
         [disable EGL library @<:@default=enabled@:>@])],
     [enable_egl="$enableval"],
     [enable_egl=yes])
+AC_ARG_WITH([egl-platforms],
+    [AS_HELP_STRING([--with-egl-platforms@<:@=DIRS...@:>@],
+        [comma delimited native platforms libEGL supports, e.g.
+        "x11,drm" @<:@default=auto@:>@])],
+    [with_egl_platforms="$withval"],
+    [if test "x$enable_egl" = xyes; then
+       with_egl_platforms="x11,drm"
+    else
+       with_egl_platforms=""
+    fi])
 
 AC_ARG_ENABLE([xa],
     [AS_HELP_STRING([--enable-xa],
@@ -1732,17 +1742,6 @@ AC_SUBST([EGL_CLIENT_APIS])
 dnl
 dnl EGL Platforms configuration
 dnl
-AC_ARG_WITH([egl-platforms],
-    [AS_HELP_STRING([--with-egl-platforms@<:@=DIRS...@:>@],
-        [comma delimited native platforms libEGL supports, e.g.
-        "x11,drm" @<:@default=auto@:>@])],
-    [with_egl_platforms="$withval"],
-    [if test "x$enable_egl" = xyes; then
-       with_egl_platforms="x11"
-    else
-       with_egl_platforms=""
-    fi])
-
 if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
     AC_MSG_ERROR([cannot build egl state tracker without EGL library])
 fi
-- 
2.1.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to