Merge branch 'disable-sdl-macos'

Disable the use of SDL under macOS, it doesn't compile nor is needed
there.

See https://github.com/wxWidgets/wxWidgets/pull/1217
This commit is contained in:
Vadim Zeitlin
2019-02-03 22:54:32 +01:00
3 changed files with 6 additions and 6 deletions

View File

@@ -362,7 +362,7 @@ if(wxUSE_GUI)
set(wxUSE_GSTREAMER_PLAYER OFF) set(wxUSE_GSTREAMER_PLAYER OFF)
endif() endif()
if(wxUSE_SOUND AND UNIX AND wxUSE_LIBSDL) if(wxUSE_SOUND AND wxUSE_LIBSDL AND UNIX AND NOT APPLE)
find_package(SDL2) find_package(SDL2)
if(NOT SDL2_FOUND) if(NOT SDL2_FOUND)
find_package(SDL) find_package(SDL)

4
configure vendored
View File

@@ -32133,7 +32133,7 @@ if test "x$ac_cv_lib_socket_inet_addr" = xyes; then :
INET_LINK="socket" INET_LINK="socket"
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnetwork" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnetwork" >&5
$as_echo_n "checking for inet_addr in -lnetwork... " >&6; } $as_echo_n "checking for inet_addr in -lnetwork... " >&6; }
if ${ac_cv_lib_network_inet_addr+:} false; then : if ${ac_cv_lib_network_inet_addr+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
@@ -34514,7 +34514,7 @@ fi
WITH_PLUGIN_SDL=0 WITH_PLUGIN_SDL=0
if test "$wxUSE_SOUND" = "yes"; then if test "$wxUSE_SOUND" = "yes"; then
if test "$USE_UNIX" = 1 ; then if test "$USE_UNIX" = 1 -a "$USE_MAC" != 1 ; then
if test "$wxUSE_LIBSDL" != "no"; then if test "$wxUSE_LIBSDL" != "no"; then
pkg_failed=no pkg_failed=no

View File

@@ -4530,7 +4530,7 @@ AC_CHECK_FUNCS(inet_addr,
AC_CHECK_LIB(socket, inet_addr, AC_CHECK_LIB(socket, inet_addr,
INET_LINK="socket", INET_LINK="socket",
[ [
AC_CHECK_LIB(network, inet_addr, AC_CHECK_LIB(network, inet_addr,
INET_LINK="network" INET_LINK="network"
) )
] ]
@@ -5560,7 +5560,7 @@ fi
WITH_PLUGIN_SDL=0 WITH_PLUGIN_SDL=0
if test "$wxUSE_SOUND" = "yes"; then if test "$wxUSE_SOUND" = "yes"; then
if test "$USE_UNIX" = 1 ; then if test "$USE_UNIX" = 1 -a "$USE_MAC" != 1 ; then
if test "$wxUSE_LIBSDL" != "no"; then if test "$wxUSE_LIBSDL" != "no"; then
PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.0], PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.0],
[ [
@@ -5579,7 +5579,7 @@ if test "$wxUSE_SOUND" = "yes"; then
AC_DEFINE(wxUSE_LIBSDL) AC_DEFINE(wxUSE_LIBSDL)
], ],
[wxUSE_LIBSDL="no"]) [wxUSE_LIBSDL="no"])
]) ])
if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
WITH_PLUGIN_SDL=1 WITH_PLUGIN_SDL=1
fi fi