Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 526:ba3da45b5754
prev521:33d2d92784c7
next528:49cb007348aa
author nkeynes
date Sat Nov 17 06:04:19 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Don't build the translator if the architecture is unsupported. Also tidy things up a little to allow (theoretically) different translators to be selected at build time.
file annotate diff log raw
1.1 --- a/configure Sat Nov 17 01:13:41 2007 +0000
1.2 +++ b/configure Sat Nov 17 06:04:19 2007 +0000
1.3 @@ -5512,14 +5512,26 @@
1.4
1.5
1.6 case $host_cpu in
1.7 - i386|i486|i586|i686|x86_64)
1.8 - TRANSLATOR="x86";;
1.9 + i386|i486|i586|i686)
1.10 + SH4_TRANSLATOR="x86"
1.11 +
1.12 +cat >>confdefs.h <<_ACEOF
1.13 +#define SH4_TRANSLATOR "x86"
1.14 +_ACEOF
1.15 +;;
1.16 + x86_64)
1.17 + SH4_TRANSLATOR="x86_64"
1.18 +
1.19 +cat >>confdefs.h <<_ACEOF
1.20 +#define SH4_TRANSLATOR "x86_64"
1.21 +_ACEOF
1.22 +;;
1.23 *)
1.24 echo "Warning: No translator available for $host. Building emulation core only";;
1.25 esac
1.26
1.27
1.28 -if test "$TRANSLATOR"="x86"; then
1.29 +if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
1.30 BUILD_SH4X86_TRUE=
1.31 BUILD_SH4X86_FALSE='#'
1.32 else
.