mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 10:49:12 +00:00
Threads are used by many SDL subsystems and may not be disabled.
Fixes https://github.com/libsdl-org/SDL/issues/5095
This commit is contained in:
17
configure.ac
17
configure.ac
@@ -522,14 +522,15 @@ if test x$enable_filesystem != xyes; then
|
||||
else
|
||||
SUMMARY_modules="${SUMMARY_modules} filesystem"
|
||||
fi
|
||||
AC_ARG_ENABLE(threads,
|
||||
[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
|
||||
, enable_threads=yes)
|
||||
if test x$enable_threads != xyes; then
|
||||
AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
|
||||
else
|
||||
SUMMARY_modules="${SUMMARY_modules} threads"
|
||||
fi
|
||||
# Many subsystems depend on threads, so leave them enabled by default
|
||||
#AC_ARG_ENABLE(threads,
|
||||
#[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
|
||||
# , enable_threads=yes)
|
||||
#if test x$enable_threads != xyes; then
|
||||
# AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
|
||||
#else
|
||||
# SUMMARY_modules="${SUMMARY_modules} threads"
|
||||
#fi
|
||||
AC_ARG_ENABLE(timers,
|
||||
[AS_HELP_STRING([--enable-timers], [Enable the timer subsystem [default=yes]])],
|
||||
, enable_timers=yes)
|
||||
|
||||
Reference in New Issue
Block a user