Commit 88ec6ac9 authored by Måns Rullgård's avatar Måns Rullgård

configure: do not warn about mismatching altivec/cpu selection

We do not issue similar warnings for other architectures, and we
generally assume users know what they want.

Originally committed as revision 19445 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a5762c9b
...@@ -1857,41 +1857,30 @@ disabled optimizations || check_cflags -fomit-frame-pointer ...@@ -1857,41 +1857,30 @@ disabled optimizations || check_cflags -fomit-frame-pointer
# Add processor-specific flags # Add processor-specific flags
if test $cpu != "generic"; then if test $cpu != "generic"; then
warn_altivec(){
$1 altivec && echo "WARNING: Tuning for $2 but AltiVec $1.";
}
case $cpu in case $cpu in
601|ppc601|PowerPC601) 601|ppc601|PowerPC601)
cpuflags="-mcpu=601" cpuflags="-mcpu=601"
warn_altivec enabled PPC601
;; ;;
603*|ppc603*|PowerPC603*) 603*|ppc603*|PowerPC603*)
cpuflags="-mcpu=603" cpuflags="-mcpu=603"
warn_altivec enabled PPC603
;; ;;
604*|ppc604*|PowerPC604*) 604*|ppc604*|PowerPC604*)
cpuflags="-mcpu=604" cpuflags="-mcpu=604"
warn_altivec enabled PPC604
;; ;;
G3|g3|75*|ppc75*|PowerPC75*) G3|g3|75*|ppc75*|PowerPC75*)
cpuflags="-mcpu=750 -mpowerpc-gfxopt" cpuflags="-mcpu=750 -mpowerpc-gfxopt"
warn_altivec enabled PPC75x
;; ;;
G4|g4|745*|ppc745*|PowerPC745*) G4|g4|745*|ppc745*|PowerPC745*)
cpuflags="-mcpu=7450 -mpowerpc-gfxopt" cpuflags="-mcpu=7450 -mpowerpc-gfxopt"
warn_altivec disabled PPC745x
;; ;;
74*|ppc74*|PowerPC74*) 74*|ppc74*|PowerPC74*)
cpuflags="-mcpu=7400 -mpowerpc-gfxopt" cpuflags="-mcpu=7400 -mpowerpc-gfxopt"
warn_altivec disabled PPC74xx
;; ;;
G5|g5|970|ppc970|PowerPC970|power4*|Power4*) G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64" cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64"
warn_altivec disabled PPC970
;; ;;
Cell|CELL|cell) Cell|CELL|cell)
cpuflags="-mcpu=cell" cpuflags="-mcpu=cell"
warn_altivec disabled Cell
enable ldbrx enable ldbrx
;; ;;
# targets that do NOT support conditional mov (cmov) # targets that do NOT support conditional mov (cmov)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment