diff options
author | Max Horn | 2004-12-16 22:05:45 +0000 |
---|---|---|
committer | Max Horn | 2004-12-16 22:05:45 +0000 |
commit | 642b5e703bb9373192ce64866c9d2f720cb545de (patch) | |
tree | c5cb9ef8ca0f703feb6a8cdc9c8bdf69fc1bab1e | |
parent | 13a4006b691529fc00612234e88d73bfcef8787d (diff) | |
download | scummvm-rg350-642b5e703bb9373192ce64866c9d2f720cb545de.tar.gz scummvm-rg350-642b5e703bb9373192ce64866c9d2f720cb545de.tar.bz2 scummvm-rg350-642b5e703bb9373192ce64866c9d2f720cb545de.zip |
Patch #1086705 (RISC OS cross compiling support)
svn-id: r16090
-rwxr-xr-x | configure | 26 |
1 files changed, 20 insertions, 6 deletions
@@ -2,7 +2,7 @@ # # Some things this script could/should do when finished # -# * detect whether its a GNU compiler or not (for compiler settings) +# * detect whether it's a GNU compiler or not (for compiler settings) # * command line options to... # - override the host settings (for cross compiles # - whether to do a debug build (with -g) or an optimized build (-O3 etc.) @@ -412,15 +412,22 @@ done; CXXFLAGS="$CXXFLAGS $DEBFLAGS" -if test "$_host" = "linupy"; then +case $_host in +linupy) _host_os=linux _host_cpu=arm -else - guessed_host=`$_srcdir/config.guess` + ;; +arm-riscos-aof) + _host_os=riscos + _host_cpu=arm + ;; +*) + guessed_host=`$_srcdir/config.guess` _host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` _host_os=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` _host_vendor=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -fi + ;; +esac # # Determine extension used for executables @@ -429,6 +436,9 @@ case $_host_os in mingw* | cygwin*) EXEEXT=".exe" ;; +arm-riscos-aof) + EXEEXT=",ff8" + ;; *) EXEEXT="" ;; @@ -482,6 +492,10 @@ case $cxx_version in cxx_version="$cxx_version, ok" cxx_verc_fail=no ;; + 3_4) + _cxx_major=3 + _mxx_minor=4 + ;; 'not found') cxx_verc_fail=yes ;; @@ -570,7 +584,7 @@ fi if test -n "$_host"; then # Cross-compiling mode - add your target here if needed case "$_host" in - linupy) + linupy|arm-riscos-aof) echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" DEFINES="$DEFINES -DUNIX" _def_endianness='#define SCUMM_LITTLE_ENDIAN' |