[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Solaris x86_64 configure patch
From: |
Ben Taylor |
Subject: |
[Qemu-devel] Solaris x86_64 configure patch |
Date: |
Sat, 15 Sep 2007 8:49:13 -0400 |
By default, uname -i returns i86pc on i386 or x86_64 system. This patch makes
it possible to for Solaris systems to get the right hardware type.
--- qemu.ORIG/configure 2007-08-24 21:37:51.000000000 -0400
+++ qemu/configure 2007-09-15 08:53:34.288345000 -0400
@@ -155,6 +155,12 @@
install="ginstall"
needs_libsunmath="no"
solarisrev=`uname -r | cut -f2 -d.`
+ # have to select again, because `uname -m` returns i86pc
+ # even on an x86_64 box.
+ solariscpu=`isainfo -k`
+ if test "${solariscpu}" = "amd64" ; then
+ cpu="x86_64"
+ fi
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
if test "$solarisrev" -le 9 ; then
if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then
- [Qemu-devel] Solaris x86_64 configure patch,
Ben Taylor <=