We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5270

Summary: EGL detection fails on systems with recent headers and no X11
Product: SDL Reporter: Brian Kubisiak <brian>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: david, sezeroz
Version: 2.0.13Keywords: target-2.0.14
Hardware: x86_64   
OS: Linux   
Attachments: patch

Description Brian Kubisiak 2020-08-25 13:58:05 UTC
Created attachment 4447 [details]
patch

Recent EGL headers on Linux use EGL_NO_X11 instead of MESA_EGL_NO_X11_HEADERS on systems where X11 should not be used. As a result, on systems where X11 is not present, the configure script would fail to enable EGL (and Wayland) support.

The attached patch should fix this issue. The old MESA_EGL_NO_X11_HEADERS remains for systems that do not have the updated headers. Note that the newer macro has already been added to EXTRA_CFLAGS, so the build still worked, it is just the detection during configuration that is failing.
Comment 1 Ozkan Sezer 2020-11-15 01:10:35 UTC
This patch is in: https://hg.libsdl.org/SDL/rev/69b6e0c949ee
Closing as fixed.