Browse code

Check whether 32-bit x86 is really 64-bit Fixes configure on OS X 10.6

Originally committed as revision 20134 to svn://svn.ffmpeg.org/ffmpeg/trunk

David Conrad authored on 2009/10/02 06:38:25
Showing 1 changed files
... ...
@@ -1817,20 +1817,17 @@ case "$arch" in
1817 1817
         enable fast_64bit
1818 1818
         spic=$shared
1819 1819
     ;;
1820
-    i386|i486|i586|i686|i86pc|BePC)
1820
+    i386|i486|i586|i686|i86pc|BePC|x86_64|amd64)
1821 1821
         arch="x86"
1822 1822
         subarch="x86_32"
1823 1823
         enable fast_unaligned
1824
-    ;;
1825
-    x86_64|amd64)
1826
-        arch="x86"
1827
-        subarch="x86_32"
1828
-        enable cmov
1829
-        enable fast_cmov
1830
-        enable fast_unaligned
1831 1824
         check_cc <<EOF && enable fast_64bit && subarch="x86_64" && spic=$shared
1832 1825
         int test[sizeof(char*) - 7];
1833 1826
 EOF
1827
+        if test "$subarch" = "x86_64"; then
1828
+            enable cmov
1829
+            enable fast_cmov
1830
+        fi
1834 1831
     ;;
1835 1832
     *)
1836 1833
         arch="unknown"