]> git.sesse.net Git - vlc/commitdiff
configure: tune for core2 when compiling for 64bit Mac
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 7 Feb 2011 20:28:09 +0000 (21:28 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 8 Feb 2011 14:21:24 +0000 (15:21 +0100)
configure.ac

index 14d2f65baf9f7703e38aaae541aacfa9c191aa79..7ef7f3b0973e4499758bb3e84292d608b1b18518 100644 (file)
@@ -1481,8 +1481,10 @@ if test -n "${with_tuning}"; then
         CFLAGS_TUNING="-mtune=${with_tuning}"
     fi
 else
-    if test "${SYS}" = "darwin" -a "${host_cpu}" != "powerpc"; then
+    if test "${SYS}" = "darwin" -a "${host_cpu}" = "i686"; then
         CFLAGS_TUNING="-march=prescott -mtune=generic"
+    elif test "${SYS}" = "darwin" -a "${host_cpu}" = "x86_64"; then
+        CFLAGS_TUNING="-march=core2 -mtune=core2"
     elif test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "i386"; then
         CFLAGS_TUNING="-mtune=pentium2"
     elif test "${host_cpu}" = "x86_64"; then