Mercurial > mplayer.hg
changeset 36399:9855a1d4e745
Fall back to uname -p if uname -m does not give anything useful.
author | reimar |
---|---|
date | Sat, 26 Oct 2013 21:39:20 +0000 |
parents | 4eb02d8a5095 |
children | eb406ab18f4a |
files | configure |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Oct 26 21:30:17 2013 +0000 +++ b/configure Sat Oct 26 21:39:20 2013 +0000 @@ -1685,7 +1685,8 @@ # host's CPU/instruction set - case "$(uname -m 2>&1)" in + set_host_arch() { + case "$1" in x86_64|amd64|i[3-9]86*|i86pc|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;; ia64) host_arch=ia64 ;; macppc|ppc*|Power*) host_arch=ppc ;; @@ -1701,6 +1702,11 @@ xtensa*) host_arch=xtensa ;; *) host_arch=UNKNOWN ;; esac + } + set_host_arch "$(uname -m 2>&1)" + if test "$host_arch" = UNKNOWN ; then + set_host_arch "$(uname -p 2>&1)" + fi else # if test -z "$_target" for component in 3 2; do system_name=$(echo $_target | cut -d '-' -f $component)