Mercurial > mplayer.hg
comparison configure @ 23843:463f7715f8ee
add Hitachi SuperH (SH3) support
patch by Alex Ferguson %b_linuz A yahoo P com%
author | gpoirier |
---|---|
date | Thu, 26 Jul 2007 08:21:42 +0000 |
parents | 9cd0d6ae322d |
children | 21aab907150e |
comparison
equal
deleted
inserted
replaced
23842:9cd0d6ae322d | 23843:463f7715f8ee |
---|---|
152 } | 152 } |
153 | 153 |
154 arm() { | 154 arm() { |
155 case "$host_arch" in | 155 case "$host_arch" in |
156 arm) return 0;; | 156 arm) return 0;; |
157 *) return 1;; | |
158 esac | |
159 } | |
160 | |
161 sh3() { | |
162 case "$host_arch" in | |
163 sh3) return 0;; | |
157 *) return 1;; | 164 *) return 1;; |
158 esac | 165 esac |
159 } | 166 } |
160 | 167 |
161 # not boolean test: implement the posix shell "!" operator for a | 168 # not boolean test: implement the posix shell "!" operator for a |
1190 | 1197 |
1191 | 1198 |
1192 # host's CPU/instruction set | 1199 # host's CPU/instruction set |
1193 host_arch=`uname -p 2>&1` | 1200 host_arch=`uname -p 2>&1` |
1194 case "$host_arch" in | 1201 case "$host_arch" in |
1195 i386|sparc|ppc|alpha|arm|mips|vax) | 1202 i386|sparc|ppc|alpha|arm|sh3|mips|vax) |
1196 ;; | 1203 ;; |
1197 powerpc) # Darwin returns 'powerpc' | 1204 powerpc) # Darwin returns 'powerpc' |
1198 host_arch=ppc | 1205 host_arch=ppc |
1199 ;; | 1206 ;; |
1200 *) # uname -p on Linux returns 'unknown' for the processor type, | 1207 *) # uname -p on Linux returns 'unknown' for the processor type, |
1219 alpha) host_arch=alpha ;; | 1226 alpha) host_arch=alpha ;; |
1220 sparc) host_arch=sparc ;; | 1227 sparc) host_arch=sparc ;; |
1221 sparc64) host_arch=sparc64 ;; | 1228 sparc64) host_arch=sparc64 ;; |
1222 parisc*|hppa*|9000*) host_arch=hppa ;; | 1229 parisc*|hppa*|9000*) host_arch=hppa ;; |
1223 arm*|zaurus|cats) host_arch=arm ;; | 1230 arm*|zaurus|cats) host_arch=arm ;; |
1231 sh3) host_arch=sh3 ;; | |
1224 s390) host_arch=s390 ;; | 1232 s390) host_arch=s390 ;; |
1225 s390x) host_arch=s390x ;; | 1233 s390x) host_arch=s390x ;; |
1226 mips*) host_arch=mips ;; | 1234 mips*) host_arch=mips ;; |
1227 vax) host_arch=vax ;; | 1235 vax) host_arch=vax ;; |
1228 *) host_arch=UNKNOWN ;; | 1236 *) host_arch=UNKNOWN ;; |
1591 fi | 1599 fi |
1592 | 1600 |
1593 fi | 1601 fi |
1594 | 1602 |
1595 | 1603 |
1596 _arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC' | 1604 _arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC' |
1597 case "$host_arch" in | 1605 case "$host_arch" in |
1598 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) | 1606 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) |
1599 _arch='X86 X86_32' | 1607 _arch='X86 X86_32' |
1600 _target_arch_x86="ARCH_X86 = yes" | 1608 _target_arch_x86="ARCH_X86 = yes" |
1601 _target_arch="ARCH_X86_32 = yes" | 1609 _target_arch="ARCH_X86_32 = yes" |
1961 _target_arch='ARCH_ARMV4L = yes' | 1969 _target_arch='ARCH_ARMV4L = yes' |
1962 iproc='arm' | 1970 iproc='arm' |
1963 proc='' | 1971 proc='' |
1964 _march='' | 1972 _march='' |
1965 _mcpu='' | 1973 _mcpu='' |
1974 _optimizing='' | |
1975 ;; | |
1976 | |
1977 sh3) | |
1978 _arch='SH3' | |
1979 _target_arch='ARCH_SH3 = yes' | |
1980 iproc='sh3' | |
1981 proc='' | |
1982 _march='-m3' | |
1983 _mcpu='-ml' | |
1966 _optimizing='' | 1984 _optimizing='' |
1967 ;; | 1985 ;; |
1968 | 1986 |
1969 ppc|powerpc) | 1987 ppc|powerpc) |
1970 _arch='POWERPC PPC' | 1988 _arch='POWERPC PPC' |