configure: simplify --cpu handling slightly

Originally committed as revision 19451 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Måns Rullgård 16 years ago
parent 87d718aefc
commit a915980acd
  1. 4
      configure

4
configure vendored

@ -1856,7 +1856,6 @@ fi
disabled optimizations || check_cflags -fomit-frame-pointer disabled optimizations || check_cflags -fomit-frame-pointer
# Add processor-specific flags # Add processor-specific flags
if test $cpu != "generic"; then
case $cpu in case $cpu in
601|ppc601|PowerPC601) 601|ppc601|PowerPC601)
cpuflags="-mcpu=601" cpuflags="-mcpu=601"
@ -1926,11 +1925,12 @@ if test $cpu != "generic"; then
mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef]) mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef])
cpuflags="-march=$cpu" cpuflags="-march=$cpu"
;; ;;
generic)
;;
*) *)
echo "WARNING: Unknown CPU \"$cpu\", ignored." echo "WARNING: Unknown CPU \"$cpu\", ignored."
;; ;;
esac esac
fi
add_cflags $cpuflags add_cflags $cpuflags
add_asflags $cpuflags add_asflags $cpuflags

Loading…
Cancel
Save