Originally committed as revision 17478 to svn://svn.ffmpeg.org/ffmpeg/trunk
check_cflags -std=c99
case "$arch" in
- i386|i486|i586|i686|i86pc|BePC)
- arch="x86"
- subarch="x86_32"
- enable fast_unaligned
- ;;
- x86_64|amd64)
- arch="x86"
- subarch="x86_32"
- enable cmov
- enable fast_cmov
- enable fast_unaligned
- check_cc <<EOF && enable fast_64bit && subarch="x86_64"
- int test[sizeof(char*) - 7];
-EOF
- ;;
- arm|armv[4567]*l)
- arch="arm"
- ;;
alpha)
arch="alpha"
enable fast_64bit
check_cflags -mieee
;;
- "Power Macintosh"|ppc|powerpc)
- arch="ppc"
- enable fast_unaligned
+ arm|armv[4567]*l)
+ arch="arm"
;;
- ppc64)
- arch="ppc"
+ bfin)
+ arch="bfin"
+ ;;
+ ia64)
+ arch="ia64"
enable fast_64bit
- enable fast_unaligned
+ ;;
+ m68k)
+ arch="m68k"
;;
mips|mipsel|IP*)
arch="mips"
arch="mips"
enable fast_64bit
;;
- sun4u|sparc64)
- arch="sparc"
- subarch="sparc64"
- enable fast_64bit
- ;;
- sparc)
- arch="sparc"
- ;;
- sh4|sh)
- arch="sh4"
- ;;
parisc|hppa)
arch="parisc"
;;
arch="parisc"
enable fast_64bit
;;
+ "Power Macintosh"|ppc|powerpc)
+ arch="ppc"
+ enable fast_unaligned
+ ;;
+ ppc64)
+ arch="ppc"
+ enable fast_64bit
+ enable fast_unaligned
+ ;;
s390|s390x)
arch="s390"
;;
- m68k)
- arch="m68k"
+ sh4|sh)
+ arch="sh4"
;;
- ia64)
- arch="ia64"
+ sparc)
+ arch="sparc"
+ ;;
+ sun4u|sparc64)
+ arch="sparc"
+ subarch="sparc64"
enable fast_64bit
;;
- bfin)
- arch="bfin"
+ i386|i486|i586|i686|i86pc|BePC)
+ arch="x86"
+ subarch="x86_32"
+ enable fast_unaligned
+ ;;
+ x86_64|amd64)
+ arch="x86"
+ subarch="x86_32"
+ enable cmov
+ enable fast_cmov
+ enable fast_unaligned
+ check_cc <<EOF && enable fast_64bit && subarch="x86_64"
+ int test[sizeof(char*) - 7];
+EOF
;;
*)
arch="unknown"