aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-03-15 15:54:20 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-15 15:54:20 +0000
commit4477b9f4243d88368917b40873295d3b8f05bbef (patch)
tree79ed24f40c4ad216713293ddf50113bfcc5bd1a0
parentb96644bfe36a1c9a2354fda63987e5d282cab2f5 (diff)
downloadffmpeg-4477b9f4243d88368917b40873295d3b8f05bbef.tar.gz
Properly check for AltiVec CFLAGS instead of guessing based on compiler vendor.
Originally committed as revision 12448 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure9
1 files changed, 3 insertions, 6 deletions
diff --git a/configure b/configure
index a2e95747e8..7a89ab2516 100755
--- a/configure
+++ b/configure
@@ -1532,12 +1532,9 @@ fi
# AltiVec flags: The FSF version of GCC differs from the Apple version
if enabled altivec; then
- if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
- add_cflags "-faltivec"
- else
- add_cflags "-maltivec -mabi=altivec"
- check_header altivec.h
- fi
+ check_cflags -maltivec -mabi=altivec &&
+ check_header altivec.h ||
+ check_cflags -faltivec
# check if our compiler supports Motorola AltiVec C API
enabled altivec_h &&