diff --git a/configure b/configure index 654815115..9c46ffe2b 100755 --- a/configure +++ b/configure @@ -21487,6 +21487,9 @@ $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode" fi fi + else + # Prevent Mesa from including X11 headers + EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11" fi }