aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-25 13:28:07 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-25 13:28:07 +0000
commit9e4d986a30f443d12cea6826fca3e7f6d7394d46 (patch)
tree597b87edfc7a51a8b903c8f1b6e2bd9f90e0573c /configure
parent52043e983f15ae17bb95f146414a9a68af9fdfdf (diff)
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 > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16851 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure b/configure
index 459810b9ae..2187cb0e28 100755
--- a/configure
+++ b/configure
@@ -793,11 +793,8 @@ x86_exts_check()
done
}
-case "$host_arch" in
- i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
- _def_arch="#define ARCH_X86 1"
- _target_arch="TARGET_ARCH_X86 = yes"
-
+if x86 || x86_64 ; then
+ # gather more CPU information
pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | _head 1`
pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1`
pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | _head 1`
@@ -811,6 +808,13 @@ case "$host_arch" in
echocheck "CPU type"
echores "$pname"
+fi
+
+case "$host_arch" in
+ i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
+ _def_arch="#define ARCH_X86 1"
+ _target_arch="TARGET_ARCH_X86 = yes"
+
case "$pvendor" in
AuthenticAMD)