Building HEAD ( babb26776fadb683be9dacb492efcdc455b176ab ) on a system without X11 installed gives a compilation error for not finding X11/Xlib.h as included from the file include/EGL/eglplatform.h:104 . configure flags: EGL_PLATFORM=drm ./configure --disable-glx --disable-dri --with-gallium-drivers=swrast --with-egl-platforms=drm --enable-gles1 --enable-gles2 --without-x --disable-xlib-glx It would seem MESA_EGL_NO_X11_HEADERS never gets defined..
Also, EGL users which are including EGL/eglplatform.h are highly unlikely to define MESA_EGL_NO_X11_HEADERS either, so we need to define it in a way that users will have the definition too. Maybe putting a CFLAGS in egl.pc?
Please reopen if this is still a problem.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.