changeset 30874:78c91b9f7d3d

Fix compilation after FFmpeg r22569 at least for some architectures.
author cehoyos
date Wed, 17 Mar 2010 10:46:18 +0000
parents b193ab2083ad
children 4a65ead91a7e
files configure
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Mar 17 10:10:47 2010 +0000
+++ b/configure	Wed Mar 17 10:46:18 2010 +0000
@@ -1769,6 +1769,7 @@
 case "$host_arch" in
   i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
   arch='X86 X86_32'
+  libavcodec_arch="x86"
   target_arch="ARCH_X86 = yes"
   target_subarch="ARCH_X86_32 = yes"
   def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
@@ -2017,6 +2018,7 @@
 
   x86_64|amd64)
     arch='X86 X86_64'
+    libavcodec_arch="x86"
     target_subarch='ARCH_X86_64 = yes'
     target_arch="ARCH_X86 = yes"
     def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
@@ -2112,6 +2114,7 @@
 
   sparc|sparc64)
     arch='SPARC'
+    libavcodec_arch="sparc"
     target_arch='ARCH_SPARC = yes'
     iproc='sparc'
     if test "$host_arch" = "sparc64" ; then
@@ -2140,12 +2143,14 @@
 
   arm*)
     arch='ARM'
+    libavcodec_arch="arm"
     target_arch='ARCH_ARM = yes'
     iproc='arm'
     ;;
 
   avr32)
     arch='AVR32'
+    libavcodec_arch="avr32"
     target_arch='ARCH_AVR32 = yes'
     def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
     iproc='avr32'
@@ -2154,6 +2159,7 @@
 
   sh|sh4)
     arch='SH4'
+    libavcodec_arch="sh4"
     target_arch='ARCH_SH4 = yes'
     iproc='sh4'
     ;;
@@ -2161,6 +2167,7 @@
   ppc|ppc64|powerpc|powerpc64)
     arch='PPC'
     def_dcbzl='#define HAVE_DCBZL 0'
+    libavcodec_arch="ppc"
     target_arch='ARCH_PPC = yes'
     def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'
     def_local_aligned_8='#define HAVE_LOCAL_ALIGNED_8 1'
@@ -2278,6 +2285,7 @@
 
   alpha*)
     arch='ALPHA'
+    libavcodec_arch="alpha"
     target_arch='ARCH_ALPHA = yes'
     iproc='alpha'
 
@@ -2321,6 +2329,7 @@
 
   mips)
     arch='SGI_MIPS'
+    libavcodec_arch="mips"
     target_arch='ARCH_SGI_MIPS = yes'
     iproc='sgi-mips'
 
@@ -8489,6 +8498,7 @@
 EXESUFS_ALL = .exe
 
 $target_arch
+ARCH = $libavcodec_arch
 $target_subarch
 $(echo $_cpuexts | tr '[a-z] ' '[A-Z]\n' | sed 's/^/HAVE_/;s/$/=yes/')