aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndre Heider2009-08-21 17:19:06 +0000
committerAndre Heider2009-08-21 17:19:06 +0000
commitd4d9c78fdd2c9dcbf1a7ba2345ec08ac181d1e1c (patch)
treef92e060dc1044c3c4adfcaab07f9b17a583f4919 /configure
parentf9a3ca7db1de02c93be3a7548eb32138c49c7b6b (diff)
downloadscummvm-rg350-d4d9c78fdd2c9dcbf1a7ba2345ec08ac181d1e1c.tar.gz
scummvm-rg350-d4d9c78fdd2c9dcbf1a7ba2345ec08ac181d1e1c.tar.bz2
scummvm-rg350-d4d9c78fdd2c9dcbf1a7ba2345ec08ac181d1e1c.zip
Enable 16bit support only for backends which support it
svn-id: r43602
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 18 insertions, 2 deletions
diff --git a/configure b/configure
index bd4933c0dd..061089361b 100755
--- a/configure
+++ b/configure
@@ -110,7 +110,7 @@ _alsa=auto
_zlib=auto
_mpeg2=no
_fluidsynth=auto
-_16bit=yes
+_16bit=auto
_readline=auto
# Default option behaviour yes/no
_text_console=no
@@ -639,7 +639,6 @@ DEBFLAGS="-g"
for ac_option in $@; do
case "$ac_option" in
- --enable-16bit) _16bit=yes ;;
--disable-16bit) _16bit=no ;;
--disable-hq-scalers) _build_hq_scalers=no ;;
--disable-scalers) _build_scalers=no ;;
@@ -1496,6 +1495,23 @@ EOF
fi
#
+# Enable 16bit support only for backends which support it
+#
+case $_backend in
+ sdl)
+ if test "$_16bit" = auto ; then
+ _16bit=yes
+ else
+ _16bit=no
+ fi
+ ;;
+ *)
+ _16bit=no
+ ;;
+esac
+
+
+#
# Add the results of the above checks to config.h
#
case $_endian in