configure: error out when building GLX w/o the X11 platform
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 3 May 2017 14:57:31 +0000 (15:57 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 May 2017 18:44:12 +0000 (19:44 +0100)
commit8212fc95b59d0dd3cae1fe11359e0fa96d75e1bc
tree02e30b48f2a0a2380b971c5bb8b52d9161250bd7
parentf353f844a08c78f2aa225165c05dae31f5700845
configure: error out when building GLX w/o the X11 platform

Building EGL/Vulkan/other without X11, while GLX is enabled is confusing
and misleading. In practise anyone aiming at the former will also
disable GLX.

The inverse (some examples below) should still work:
 ./configure --disable-glx --with-platforms=x11 --with-vulkan-drivers=intel
 ./configure --disable-glx --with-platforms=x11 --enable-egl

Keep in mind that the X11 platform is enabled, by default.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
configure.ac