Mercurial > mplayer.hg
comparison configure @ 22888:43b8a7c3595c
Use "generic" optimization instead of 686 as default for runtime-cpudetection
if available. It promises to deliver optimal performance on a collection of
comtemporary CPUs.
patch by Zuxy Meng, zuxy.meng gmail com
author | diego |
---|---|
date | Tue, 03 Apr 2007 13:16:46 +0000 |
parents | 97cb08575ed5 |
children | baebaabc0547 |
comparison
equal
deleted
inserted
replaced
22887:dc3ff1498f69 | 22888:43b8a7c3595c |
---|---|
1765 _march="-march=$proc" | 1765 _march="-march=$proc" |
1766 _mcpu="$cpuopt=$proc" | 1766 _mcpu="$cpuopt=$proc" |
1767 _optimizing="$proc" | 1767 _optimizing="$proc" |
1768 fi | 1768 fi |
1769 else # if test "$_runtime_cpudetection" = no | 1769 else # if test "$_runtime_cpudetection" = no |
1770 # i686 is probably the most common CPU - optimize for it | 1770 _mcpu="$cpuopt=generic" |
1771 _mcpu="$cpuopt=i686" | |
1772 # at least i486 required, for bswap instruction | 1771 # at least i486 required, for bswap instruction |
1773 _march="-march=i486" | 1772 _march="-march=i486" |
1773 cc_check $_mcpu || _mcpu="$cpuopt=i686" | |
1774 cc_check $_mcpu || _mcpu="" | 1774 cc_check $_mcpu || _mcpu="" |
1775 cc_check $_march $_mcpu || _march="" | 1775 cc_check $_march $_mcpu || _march="" |
1776 fi | 1776 fi |
1777 | 1777 |
1778 ## Gabucino : --target takes effect here (hopefully...) by overwriting | 1778 ## Gabucino : --target takes effect here (hopefully...) by overwriting |
1887 _march="" | 1887 _march="" |
1888 fi | 1888 fi |
1889 else # if test "$_runtime_cpudetection" = no | 1889 else # if test "$_runtime_cpudetection" = no |
1890 # x86-64 is an undocumented option, an intersection of k8 and nocona. | 1890 # x86-64 is an undocumented option, an intersection of k8 and nocona. |
1891 _march="-march=x86-64" | 1891 _march="-march=x86-64" |
1892 _mcpu="$cpuopt=x86-64" | 1892 _mcpu="$cpuopt=generic" |
1893 cc_check $_mcpu || _mcpu="x86-64" | |
1893 cc_check $_mcpu || _mcpu="" | 1894 cc_check $_mcpu || _mcpu="" |
1894 cc_check $_march $_mcpu || _march="" | 1895 cc_check $_march $_mcpu || _march="" |
1895 fi | 1896 fi |
1896 | 1897 |
1897 _optimizing="" | 1898 _optimizing="" |