summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 8 insertions, 7 deletions
diff --git a/configure b/configure
index 357534611..d370f166c 100755
--- a/configure
+++ b/configure
@@ -148,17 +148,18 @@ def uname(switch):
def host_arch():
"""Host architecture. One of arm, ia32 or x64."""
- arch = uname('-p')
-
- if arch == 'unknown':
- arch = uname('-m')
-
- return {
+ arch = uname('-p')
+ arches = {
'arm': 'arm',
'x86': 'ia32',
'i386': 'ia32',
'x86_64': 'x64',
- }.get(arch, 'ia32')
+ }
+
+ if arches.get(arch) == None:
+ arch = uname('-m')
+
+ return arches.get(arch, 'ia32')
def target_arch():