summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-26 08:21:42 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-26 08:21:42 +0000
commit4880bc3ee433b292162e9eb15e88082fc9928b8d (patch)
tree189017bca6c8d5104a60b9bedee97fbe6ddd3519 /configure
parent1dd4ef01b97e274386deec582fe0944983ba1446 (diff)
downloadmpv-4880bc3ee433b292162e9eb15e88082fc9928b8d.tar.bz2
mpv-4880bc3ee433b292162e9eb15e88082fc9928b8d.tar.xz
add Hitachi SuperH (SH3) support
patch by Alex Ferguson %b_linuz A yahoo P com% git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23863 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 20 insertions, 2 deletions
diff --git a/configure b/configure
index 80879aa1f8..8ab9e56ce4 100755
--- a/configure
+++ b/configure
@@ -158,6 +158,13 @@ arm() {
esac
}
+sh3() {
+ case "$host_arch" in
+ sh3) return 0;;
+ *) return 1;;
+ esac
+}
+
# not boolean test: implement the posix shell "!" operator for a
# non-posix /bin/sh.
# usage: not {command}
@@ -1192,7 +1199,7 @@ if test -z "$_target" ; then
# host's CPU/instruction set
host_arch=`uname -p 2>&1`
case "$host_arch" in
- i386|sparc|ppc|alpha|arm|mips|vax)
+ i386|sparc|ppc|alpha|arm|sh3|mips|vax)
;;
powerpc) # Darwin returns 'powerpc'
host_arch=ppc
@@ -1221,6 +1228,7 @@ if test -z "$_target" ; then
sparc64) host_arch=sparc64 ;;
parisc*|hppa*|9000*) host_arch=hppa ;;
arm*|zaurus|cats) host_arch=arm ;;
+ sh3) host_arch=sh3 ;;
s390) host_arch=s390 ;;
s390x) host_arch=s390x ;;
mips*) host_arch=mips ;;
@@ -1593,7 +1601,7 @@ EOF
fi
-_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC'
+_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC'
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
_arch='X86 X86_32'
@@ -1966,6 +1974,16 @@ EOF
_optimizing=''
;;
+ sh3)
+ _arch='SH3'
+ _target_arch='ARCH_SH3 = yes'
+ iproc='sh3'
+ proc=''
+ _march='-m3'
+ _mcpu='-ml'
+ _optimizing=''
+ ;;
+
ppc|powerpc)
_arch='POWERPC PPC'
_def_dcbzl='#define NO_DCBZL 1'