Mercurial > mplayer.hg
comparison configure @ 16850:400676ee5c64
Extra processor information needs to be known in the x86_64 case as well
for x86_64 optimizations to get enabled.
patch by Corey Hickey < bugfood-ml __ at __ fatooh __ dot __ org >
author | diego |
---|---|
date | Tue, 25 Oct 2005 13:28:07 +0000 |
parents | 0695c9fbaae1 |
children | d836b98d9619 |
comparison
equal
deleted
inserted
replaced
16849:0695c9fbaae1 | 16850:400676ee5c64 |
---|---|
791 sse2) _sse2=yes ;; | 791 sse2) _sse2=yes ;; |
792 esac | 792 esac |
793 done | 793 done |
794 } | 794 } |
795 | 795 |
796 case "$host_arch" in | 796 if x86 || x86_64 ; then |
797 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) | 797 # gather more CPU information |
798 _def_arch="#define ARCH_X86 1" | |
799 _target_arch="TARGET_ARCH_X86 = yes" | |
800 | |
801 pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | _head 1` | 798 pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | _head 1` |
802 pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` | 799 pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` |
803 pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` | 800 pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` |
804 pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` | 801 pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` |
805 pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` | 802 pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1` |
809 echocheck "CPU vendor" | 806 echocheck "CPU vendor" |
810 echores "$pvendor ($pfamily:$pmodel:$pstepping)" | 807 echores "$pvendor ($pfamily:$pmodel:$pstepping)" |
811 | 808 |
812 echocheck "CPU type" | 809 echocheck "CPU type" |
813 echores "$pname" | 810 echores "$pname" |
811 fi | |
812 | |
813 case "$host_arch" in | |
814 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) | |
815 _def_arch="#define ARCH_X86 1" | |
816 _target_arch="TARGET_ARCH_X86 = yes" | |
817 | |
814 | 818 |
815 case "$pvendor" in | 819 case "$pvendor" in |
816 AuthenticAMD) | 820 AuthenticAMD) |
817 case "$pfamily" in | 821 case "$pfamily" in |
818 3) proc=i386 iproc=386 ;; | 822 3) proc=i386 iproc=386 ;; |