Allow emscripten platform to build without threads

This commit is contained in:
Sam Lantinga
2022-08-01 09:51:21 -07:00
parent e4cc076a79
commit 954bbdf3ae
3 changed files with 19 additions and 19 deletions

View File

@@ -526,11 +526,12 @@ 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
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)