summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-12-02 18:40:44 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-12-02 18:49:28 +0200
commit10e47539986deab2f0caf1fb8386043a9593796a (patch)
tree70b6a4559b2005e9ce9710826831adb981d54c8f /configure
parente62517ef6a8d23cd78325a9661f8865bd222e004 (diff)
downloadmpv-10e47539986deab2f0caf1fb8386043a9593796a.tar.bz2
mpv-10e47539986deab2f0caf1fb8386043a9593796a.tar.xz
configure: Define HAVE_BSWAP and HAVE_FAST_64BIT for FFmpeg
Set BSWAP unconditionally on x86/AMD64 (it should be available on anything newer than a 386). HAVE_FAST_64BIT could probably be set for more archs than this commit sets it for.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index ee34ff3524..2c8f0b44a7 100755
--- a/configure
+++ b/configure
@@ -1913,6 +1913,7 @@ EOF
ia64)
_arch='IA64'
_target_arch='ARCH_IA64 = yes'
+ def_fast_64bit='#define HAVE_FAST_64BIT 1'
iproc='ia64'
;;
@@ -1921,6 +1922,7 @@ EOF
_target_arch='ARCH_X86_64 = yes'
_target_arch_x86="ARCH_X86 = yes"
_def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
+ def_fast_64bit='#define HAVE_FAST_64BIT 1'
iproc='x86_64'
# gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead
@@ -2150,6 +2152,7 @@ EOF
_arch='ALPHA'
_target_arch='ARCH_ALPHA = yes'
iproc='alpha'
+ def_fast_64bit='#define HAVE_FAST_64BIT 1'
echocheck "CPU type"
cat > $TMPC << EOF
@@ -2560,7 +2563,7 @@ EOF
echores "$_iwmmxt"
fi
-_cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV PLD ARMV5TE ARMV6 ARMVFP IWMMXT MLIB MMI SH4 VIS MVI'
+_cpuexts_all='ALTIVEC BSWAP MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV PLD ARMV5TE ARMV6 ARMVFP IWMMXT MLIB MMI SH4 VIS MVI'
test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts"
test "$_mmx" = yes && _cpuexts="MMX $_cpuexts"
test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts"
@@ -2578,6 +2581,9 @@ test "$_armvfp" = yes && _cpuexts="ARMVFP $_cpuexts"
test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts"
test "$_vis" = yes && _cpuexts="VIS $_cpuexts"
test "$_mvi" = yes && _cpuexts="MVI $_cpuexts"
+if x86 ; then
+ _cpuexts="BSWAP $_cpuexts"
+fi
# Checking kernel version...
if x86_32 && linux ; then
@@ -8546,6 +8552,7 @@ $_def_libswscale_so
$_def_dcbzl
$_def_extern_prefix
$_def_fast_unaligned
+$def_fast_64bit
$_def_mkstemp
$_def_pthreads
$_def_threads