Skip to contentSkip to conversation

[6144] Add Sparc define checks

Qemu-devel Blue Swirl 1 participant 1 message Dec 31, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 6144

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6144
Author:   blueswir1
Date:     2008-12-31 16:55:26 +0000 (Wed, 31 Dec 2008)

Log Message:
-----------
Add Sparc define checks

Modified Paths:
--------------
trunk/configure

Modified: trunk/configure
===================================================================

configure +8 -0
@@ -79,6 +79,14 @@
   cpu="i386"
 elif check_define __x86_64__ ; then
   cpu="x86_64"
+elif check_define __sparc__ ; then
+  # We can't check for 64 bit (when gcc is biarch) or V8PLUSA
+  # They must be specified using --sparc_cpu
+  if check_define __arch64__ ; then
+    cpu="sparc64"
+  else
+    cpu="sparc"
+  fi
 else
   cpu=`test $(uname -s) = AIX && uname -p || uname -m`
 fi