mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 18:07:40 +00:00
autotools: by default, disable x11 on MacOS/iOS
This commit is contained in:
parent
b18c361b0f
commit
68e20501d6
2 changed files with 18 additions and 4 deletions
11
configure.ac
11
configure.ac
|
@ -1849,8 +1849,15 @@ dnl Find the X11 include and library directories
|
|||
CheckX11()
|
||||
{
|
||||
AC_ARG_ENABLE(video-x11,
|
||||
[AS_HELP_STRING([--enable-video-x11], [use X11 video driver [default=yes]])],
|
||||
, enable_video_x11=yes)
|
||||
[AS_HELP_STRING([--enable-video-x11], [use X11 video driver [default=maybe]])],
|
||||
,[
|
||||
enable_video_x11=yes
|
||||
case "$host" in
|
||||
*-*-darwin*|*-ios-*)
|
||||
enable_video_x11=no
|
||||
;;
|
||||
esac])
|
||||
|
||||
if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
|
||||
case "$host" in
|
||||
*-*-darwin*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue