configure.ac: deprecate --with-egl-platforms over --with-platforms
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 17 Apr 2017 12:29:41 +0000 (13:29 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Apr 2017 12:37:41 +0000 (13:37 +0100)
Currently the former controls more than just EGL. With follow-up commits
we'll unwind and fix things so that one can build the different drivers
with said platform support.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
.travis.yml
Makefile.am
configure.ac
docs/relnotes/17.1.0.html

index dc3557ea61c99e3cc6306871ba795075839edd2c..6d6e44cc41948c00f11dcdb88953d5cda5fa1699 100644 (file)
@@ -102,7 +102,7 @@ install:
 script:
   - if test "x$BUILD" = xmake; then
       ./autogen.sh --enable-debug
-        --with-egl-platforms=x11,drm
+        --with-platforms=x11,drm
         --with-dri-drivers=i915,i965,radeon,r200,swrast,nouveau
         --with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl,etnaviv,imx
         --with-vulkan-drivers=radeon
index 147a5e7ce8e68a7c85fd9472fecb9733290313a1..787174d0050a01d5b28b27de9e9397cf01801281 100644 (file)
@@ -41,7 +41,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
        --enable-xa \
        --enable-xvmc \
        --enable-llvm-shared-libs \
-       --with-egl-platforms=x11,wayland,drm,surfaceless \
+       --with-platforms=x11,wayland,drm,surfaceless \
        --with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast \
        --with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl,swr,etnaviv,imx \
        --with-vulkan-drivers=intel,radeon
index 4b11273146fc1bbce29e8dc85f0ec8a7f28c18b0..2dd5cf014b527ac2530c8457a12ec468c3555781 100644 (file)
@@ -2142,14 +2142,17 @@ dnl
 AM_CONDITIONAL(HAVE_GALLIUM, test -n "$with_gallium_drivers")
 
 dnl
-dnl EGL Platforms configuration
+dnl DEPRECATED: 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@:>@])],
+        [DEPRECATED: use --with-plaforms instead@<:@default=auto@:>@])],
     [with_egl_platforms="$withval"],
-    [if test "x$enable_egl" = xyes; then
+    [with_egl_platforms=auto])
+
+if test "x$with_egl_platforms" = xauto; then
+    AC_MSG_WARN([--with-egl-platforms is deprecated. Use --with-plaforms instead.])
+    if test "x$enable_egl" = xyes; then
         if test "x$enable_gbm" = xyes; then
            with_egl_platforms="x11,drm"
         else
@@ -2157,7 +2160,23 @@ AC_ARG_WITH([egl-platforms],
         fi
     else
         with_egl_platforms=""
-    fi])
+    fi
+fi
+
+dnl
+dnl Platforms configuration
+dnl
+AC_ARG_WITH([platforms],
+    [AS_HELP_STRING([--with-platforms@<:@=DIRS...@:>@],
+        [comma delimited native platforms libEGL/Vulkan/other supports, e.g.
+        "x11,drm,wayland,surfaceless..." @<:@default=auto@:>@])],
+    [with_platforms="$withval"],
+    [with_platforms=auto])
+
+# For the time being, we still reuse the EGL named variables/defines.
+if test "x$with_platforms" != xauto; then
+    with_egl_platforms=$with_platforms
+fi
 
 PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
         WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
@@ -2302,8 +2321,8 @@ require_basic_egl() {
             ;;
         *)
             AC_MSG_ERROR([$1 requires one of these:
-                  1) --with-egl-platforms=drm (X, Wayland, offscreen rendering based on DRM)
-                  2) --with-egl-platforms=surfaceless (offscreen only)
+                  1) --with-platforms=drm (X, Wayland, offscreen rendering based on DRM)
+                  2) --with-platforms=surfaceless (offscreen only)
                   Recommended options: drm,x11])
             ;;
     esac
@@ -2833,7 +2852,6 @@ dnl EGL
 echo ""
 echo "        EGL:             $enable_egl"
 if test "$enable_egl" = yes; then
-    echo "        EGL platforms:   $egl_platforms"
 
     egl_drivers=""
     if test "x$enable_dri" != "xno"; then
@@ -2851,6 +2869,8 @@ else
     echo "        GBM:             no"
 fi
 
+    echo "        EGL/Vulkan/VL platforms:   $egl_platforms"
+
 # Vulkan
 echo ""
 if test "x$VULKAN_DRIVERS" != x; then
index 00624ed0137729c8bdb7d014c3e6ca39cf09b156..e7cfe38fac48e81deed56da28bd0a45ff808d79f 100644 (file)
@@ -73,6 +73,7 @@ Note: some of the new features are only available with certain drivers.
 <li>The swr driver now requires LLVM &gt;= 3.9.0 and a C++14 capable compiler.</li>
 <li>The radeonsi driver now requires LLVM 3.8.0.</li>
 <li>The MESA_GLSL=opt and MESA_GLSL=no_opt environment vars have been removed.</li>
+<li>The --with-egl-platforms configure option is deprecated. Use --with-platforms instead.</li>
 </ul>
 
 </div>