Fixed recently broken configure script for FreeBSD. Found by buildbot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
diff --git a/configure b/configure
index 324cfae..81e6b24 100755
--- a/configure
+++ b/configure
@@ -23092,18 +23092,18 @@ $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
# Set up files for the filesystem library
if test x$enable_filesystem = xyes; then
case $ARCH in
- linux)
+ android)
-$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
+$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
- SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
+ SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
have_filesystem=yes
;;
- android)
+ *)
-$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
+$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
- SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
+ SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
have_filesystem=yes
;;
esac
diff --git a/configure.in b/configure.in
index 29d38be..a2ad20a 100644
--- a/configure.in
+++ b/configure.in
@@ -2972,16 +2972,16 @@ case "$host" in
# Set up files for the filesystem library
if test x$enable_filesystem = xyes; then
case $ARCH in
- linux)
- AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
- have_filesystem=yes
- ;;
android)
AC_DEFINE(SDL_FILESYSTEM_ANDROID, 1, [ ])
SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
have_filesystem=yes
;;
+ *)
+ AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
+ have_filesystem=yes
+ ;;
esac
fi
# Set up files for the timer library