|
@@ -535,6 +535,14 @@ if test x$enable_misc != xyes; then
|
|
else
|
|
else
|
|
SUMMARY_modules="${SUMMARY_modules} misc"
|
|
SUMMARY_modules="${SUMMARY_modules} misc"
|
|
fi
|
|
fi
|
|
|
|
+AC_ARG_ENABLE(locale,
|
|
|
|
+[AS_HELP_STRING([--enable-locale], [Enable the locale subsystem [default=yes]])],
|
|
|
|
+ , enable_locale=yes)
|
|
|
|
+if test x$enable_locale != xyes; then
|
|
|
|
+ AC_DEFINE(SDL_LOCALE_DISABLED, 1, [ ])
|
|
|
|
+else
|
|
|
|
+ SUMMARY_modules="${SUMMARY_modules} locale"
|
|
|
|
+fi
|
|
AC_ARG_ENABLE(loadso,
|
|
AC_ARG_ENABLE(loadso,
|
|
[AS_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [default=yes]])],
|
|
[AS_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [default=yes]])],
|
|
, enable_loadso=yes)
|
|
, enable_loadso=yes)
|
|
@@ -3728,10 +3736,11 @@ case "$host" in
|
|
SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
|
|
SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
|
|
have_misc=yes
|
|
have_misc=yes
|
|
fi
|
|
fi
|
|
-
|
|
|
|
- SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
|
|
|
|
- have_locale=yes
|
|
|
|
-
|
|
|
|
|
|
+ # Set up files for the locale library
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# Set up files for the audio library
|
|
# Set up files for the audio library
|
|
if test x$enable_audio = xyes; then
|
|
if test x$enable_audio = xyes; then
|
|
case $ARCH in
|
|
case $ARCH in
|
|
@@ -3915,9 +3924,10 @@ case "$host" in
|
|
have_misc=yes
|
|
have_misc=yes
|
|
fi
|
|
fi
|
|
# Use the Windows locale APIs.
|
|
# Use the Windows locale APIs.
|
|
- SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
|
|
|
|
- have_locale=yes
|
|
|
|
-
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# Set up files for the video library
|
|
# Set up files for the video library
|
|
if test x$enable_video = xyes; then
|
|
if test x$enable_video = xyes; then
|
|
AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS, 1, [ ])
|
|
AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS, 1, [ ])
|
|
@@ -4106,9 +4116,10 @@ dnl BeOS support removed after SDL 2.0.1. Haiku still works. --ryan.
|
|
have_misc=yes
|
|
have_misc=yes
|
|
fi
|
|
fi
|
|
# Set up files for the locale library
|
|
# Set up files for the locale library
|
|
- SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
|
|
|
|
- have_locale=yes
|
|
|
|
-
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# The Haiku platform requires special setup.
|
|
# The Haiku platform requires special setup.
|
|
SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
|
|
SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
|
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
|
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
|
|
@@ -4134,9 +4145,10 @@ dnl BeOS support removed after SDL 2.0.1. Haiku still works. --ryan.
|
|
have_misc=yes
|
|
have_misc=yes
|
|
fi
|
|
fi
|
|
# Set up files for the locale library
|
|
# Set up files for the locale library
|
|
- SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
|
|
|
|
- have_locale=yes
|
|
|
|
-
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# Set up files for the audio library
|
|
# Set up files for the audio library
|
|
if test x$enable_audio = xyes; then
|
|
if test x$enable_audio = xyes; then
|
|
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
|
|
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
|
|
@@ -4248,9 +4260,10 @@ dnl BeOS support removed after SDL 2.0.1. Haiku still works. --ryan.
|
|
have_misc=yes
|
|
have_misc=yes
|
|
fi
|
|
fi
|
|
# Set up files for the locale library
|
|
# Set up files for the locale library
|
|
- SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
|
|
|
|
- have_locale=yes
|
|
|
|
-
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# Set up files for the audio library
|
|
# Set up files for the audio library
|
|
if test x$enable_audio = xyes; then
|
|
if test x$enable_audio = xyes; then
|
|
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
|
|
AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
|
|
@@ -4388,8 +4401,10 @@ dnl BeOS support removed after SDL 2.0.1. Haiku still works. --ryan.
|
|
have_timers=yes
|
|
have_timers=yes
|
|
fi
|
|
fi
|
|
# Set up files for the locale library
|
|
# Set up files for the locale library
|
|
- SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
|
|
|
|
- have_locale=yes
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
;;
|
|
;;
|
|
*-*-riscos*)
|
|
*-*-riscos*)
|
|
ARCH=riscos
|
|
ARCH=riscos
|
|
@@ -4456,8 +4471,10 @@ dnl BeOS support removed after SDL 2.0.1. Haiku still works. --ryan.
|
|
SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
|
|
SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
|
|
fi
|
|
fi
|
|
# Use the Unix locale APIs.
|
|
# Use the Unix locale APIs.
|
|
- SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
|
|
|
|
- have_locale=yes
|
|
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
|
|
|
|
+ have_locale=yes
|
|
|
|
+ fi
|
|
# Set up files for the video library
|
|
# Set up files for the video library
|
|
if test x$enable_video = xyes; then
|
|
if test x$enable_video = xyes; then
|
|
AC_DEFINE(SDL_VIDEO_DRIVER_OS2, 1, [ ])
|
|
AC_DEFINE(SDL_VIDEO_DRIVER_OS2, 1, [ ])
|
|
@@ -4534,9 +4551,15 @@ AC_SUBST([INSTALL_SDL2_CONFIG], [$enable_sdl2_config])
|
|
# Verify that we have all the platform specific files we need
|
|
# Verify that we have all the platform specific files we need
|
|
|
|
|
|
if test x$have_misc != xyes; then
|
|
if test x$have_misc != xyes; then
|
|
|
|
+ if test x$enable_misc = xyes; then
|
|
|
|
+ AC_DEFINE(SDL_MISC_DUMMY, 1, [ ])
|
|
|
|
+ fi
|
|
SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
|
|
SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
|
|
fi
|
|
fi
|
|
if test x$have_locale != xyes; then
|
|
if test x$have_locale != xyes; then
|
|
|
|
+ if test x$enable_locale = xyes; then
|
|
|
|
+ AC_DEFINE(SDL_LOCALE_DUMMY, 1, [ ])
|
|
|
|
+ fi
|
|
SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
|
|
SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
|
|
fi
|
|
fi
|
|
if test x$have_joystick != xyes; then
|
|
if test x$have_joystick != xyes; then
|
|
@@ -4571,7 +4594,7 @@ if test x$have_timers != xyes; then
|
|
fi
|
|
fi
|
|
if test x$have_filesystem != xyes; then
|
|
if test x$have_filesystem != xyes; then
|
|
if test x$enable_filesystem = xyes; then
|
|
if test x$enable_filesystem = xyes; then
|
|
- AC_DEFINE(SDL_FILESYSTEM_DISABLED, 1, [ ])
|
|
|
|
|
|
+ AC_DEFINE(SDL_FILESYSTEM_DUMMY, 1, [ ])
|
|
fi
|
|
fi
|
|
SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
|
|
SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
|
|
fi
|
|
fi
|