From 2f982daf9292bc2ce7e84a244db211be38a280dc Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 22 Mar 2018 15:05:31 +0000 Subject: [PATCH] Add some basic arm detection to configure for the raspberry and chromebook users Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4086 --- configure.ac | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 89320741..3ecdddbc 100644 --- a/configure.ac +++ b/configure.ac @@ -277,6 +277,18 @@ case "$host_cpu" in c_targetcpu="m68k" c_unalignedmemory=yes ;; + armv7l) + AC_DEFINE(C_TARGETCPU,ARMV7LE) + AC_MSG_RESULT(ARMv7 Little Endian) + c_targetcpu="arm" + c_unalignedmemory=yes + ;; + armv6l) + AC_DEFINE(C_TARGETCPU,ARMV4LE) + AC_MSG_RESULT(ARMv6 Little Endian) + c_targetcpu="arm" + dnl c_unalignedmemory=yes + ;; *) AC_DEFINE(C_TARGETCPU,UNKNOWN) AC_MSG_RESULT(unknown) @@ -318,8 +330,13 @@ dnl x86 only enable it if dynamic-x86 is disabled. if test x$c_targetcpu = xx86_64 ; then AC_DEFINE(C_DYNREC,1) AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) + else + if test x$c_targetcpu = xarm ; then + AC_DEFINE(C_DYNREC,1) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi fi fi fi