Prefer FSF-style AltiVec flags over Apple-style.

FSF gcc is better than Apple gcc.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26720 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-05-10 14:57:13 +00:00
parent b77add3447
commit 1290235b58
1 changed files with 2 additions and 4 deletions

6
configure vendored
View File

@ -2418,11 +2418,9 @@ if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
cat > $TMPC << EOF
int main(void) { return 0; }
EOF
# check for Darwin-style flags first, since gcc-3.3 (August Update
# from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
cc_check -faltivec && _altivec_gcc_flags=-faltivec \
|| cc_check -maltivec -mabi=altivec \
cc_check -maltivec -mabi=altivec \
&& _altivec_gcc_flags="-maltivec -mabi=altivec" \
|| cc_check -faltivec && _altivec_gcc_flags=-faltivec \
|| _altivec=no
echores "$_altivec_gcc_flags"