mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 23:38:10 +00:00
Support for newer Apple GCC's. Patch by Magnus Damm <damm@opensource.se>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11216 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cf517cf3c1
commit
29507a18ea
20
configure
vendored
20
configure
vendored
@ -1639,12 +1639,16 @@ EOF
|
|||||||
FSF_flags='-maltivec -mabi=altivec'
|
FSF_flags='-maltivec -mabi=altivec'
|
||||||
Darwin_flags='-faltivec'
|
Darwin_flags='-faltivec'
|
||||||
|
|
||||||
if test -z "$p"; then
|
# check for Darwin-style flags first, since
|
||||||
cc_check $FSF_flags && p='FSF'
|
# gcc-3.3 (August Update from Apple) on MacOS 10.2.8
|
||||||
fi
|
# accepts but ignores FSF-style flags...
|
||||||
|
|
||||||
if test -z "$p"; then
|
if test -z "$p"; then
|
||||||
cc_check $Darwin_flags && p='Darwin'
|
cc_check $Darwin_flags && p='Darwin'
|
||||||
fi
|
fi
|
||||||
|
if test -z "$p"; then
|
||||||
|
cc_check $FSF_flags && p='FSF'
|
||||||
|
fi
|
||||||
|
|
||||||
case $p in
|
case $p in
|
||||||
FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
|
FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
|
||||||
@ -1664,7 +1668,6 @@ EOF
|
|||||||
# check if <altivec.h> should be included
|
# check if <altivec.h> should be included
|
||||||
|
|
||||||
_def_altivec_h='#undef HAVE_ALTIVEC_H'
|
_def_altivec_h='#undef HAVE_ALTIVEC_H'
|
||||||
_def_altivec='#undef HAVE_ALTIVEC'
|
|
||||||
|
|
||||||
if test "$_altivec" = yes ; then
|
if test "$_altivec" = yes ; then
|
||||||
echocheck "altivec.h"
|
echocheck "altivec.h"
|
||||||
@ -1676,7 +1679,6 @@ EOF
|
|||||||
cc_check $_altivec_gcc_flags && _have_altivec_h=yes
|
cc_check $_altivec_gcc_flags && _have_altivec_h=yes
|
||||||
if test "$_have_altivec_h" = yes ; then
|
if test "$_have_altivec_h" = yes ; then
|
||||||
_def_altivec_h='#define HAVE_ALTIVEC_H 1'
|
_def_altivec_h='#define HAVE_ALTIVEC_H 1'
|
||||||
_def_altivec='#define HAVE_ALTIVEC 1'
|
|
||||||
fi
|
fi
|
||||||
echores "$_have_altivec_h"
|
echores "$_have_altivec_h"
|
||||||
fi
|
fi
|
||||||
@ -1700,6 +1702,14 @@ EOF
|
|||||||
if test "$_altivec" = yes ; then
|
if test "$_altivec" = yes ; then
|
||||||
_mcpu="$_mcpu $_altivec_gcc_flags"
|
_mcpu="$_mcpu $_altivec_gcc_flags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# setup _def_altivec correctly
|
||||||
|
|
||||||
|
if test "$_altivec" = yes ; then
|
||||||
|
_def_altivec='#define HAVE_ALTIVEC 1'
|
||||||
|
else
|
||||||
|
_def_altivec='#undef HAVE_ALTIVEC'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_def_mmx='#undef HAVE_MMX'
|
_def_mmx='#undef HAVE_MMX'
|
||||||
|
Loading…
Reference in New Issue
Block a user