aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-18 21:05:12 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-18 21:05:12 +0000
commit34ba23c975a598de58c1feb5b799d2f5d78f5dbc (patch)
treee920c81ddeaa1290ce9c23f64604ce069b0751ae
parent9dbd5c3dd339ad99c2cbe07594a71dc37d0bddae (diff)
downloadffmpeg-34ba23c975a598de58c1feb5b799d2f5d78f5dbc.tar.gz
configure: simplify $cpu handling for some architectures
Originally committed as revision 21298 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure40
1 files changed, 11 insertions, 29 deletions
diff --git a/configure b/configure
index c4b9db9650..6e1348893b 100755
--- a/configure
+++ b/configure
@@ -1881,44 +1881,26 @@ elif enabled sparc; then
elif enabled arm; then
-case $cpu in
- arm11*|cortex*)
- cpuflags="-mcpu=$cpu"
- ;;
- armv[67]*)
- cpuflags="-march=$cpu"
- ;;
- armv*)
- cpuflags="-march=$cpu"
- ;;
- arm*)
- cpuflags="-mcpu=$cpu"
- ;;
-esac
+ case $cpu in
+ armv*)
+ cpuflags="-march=$cpu"
+ ;;
+ *)
+ cpuflags="-mcpu=$cpu"
+ ;;
+ esac
elif enabled alpha; then
-case $cpu in
- ev4|ev45|ev5|ev56|pca56|ev6|ev67)
- enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu"
- ;;
-esac
+ enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu"
elif enabled bfin; then
-case $cpu in
- bf*)
- cpuflags="-mcpu=$cpu"
- ;;
-esac
+ cpuflags="-mcpu=$cpu"
elif enabled mips; then
-case $cpu in
- mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef])
- cpuflags="-march=$cpu"
- ;;
-esac
+ cpuflags="-march=$cpu"
elif enabled avr32; then