aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Bobek <jan.bobek@gmail.com>2019-05-23 16:44:06 -0400
committerPeter Maydell <peter.maydell@linaro.org>2019-06-07 14:28:22 +0100
commitfd20dd45e1bcc95eb2bce6608d82d07208361e95 (patch)
treec9b466809d3a5a729bf53678118f29c055f37f7d
parent8b4a93bec9df36ee49de66bd7b61e1502c9b14ea (diff)
configure: add i386/x86_64 architectures
Now that i386 and x86_64 architectures are supported by RISU, we want to detect them and build RISU for them automatically. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Jan Bobek <jan.bobek@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 65e1819..ca2d7db 100755
--- a/configure
+++ b/configure
@@ -48,12 +48,14 @@ EOF
}
guess_arch() {
- if check_define __m68k__ ; then
- ARCH="m68k"
+ if check_define __aarch64__ ; then
+ ARCH="aarch64"
elif check_define __arm__ ; then
ARCH="arm"
- elif check_define __aarch64__ ; then
- ARCH="aarch64"
+ elif check_define __i386__ || check_define __x86_64__ ; then
+ ARCH="i386"
+ elif check_define __m68k__ ; then
+ ARCH="m68k"
elif check_define __powerpc64__ ; then
ARCH="ppc64"
else