Commit 3aa9bd6c351daa73a84a19673e5c9b2694bb9eed
1 parent
a456d59c
Add Sparc define checks
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6144 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
0 deletions
configure
| @@ -79,6 +79,14 @@ if check_define __i386__ ; then | @@ -79,6 +79,14 @@ if check_define __i386__ ; then | ||
| 79 | cpu="i386" | 79 | cpu="i386" |
| 80 | elif check_define __x86_64__ ; then | 80 | elif check_define __x86_64__ ; then |
| 81 | cpu="x86_64" | 81 | cpu="x86_64" |
| 82 | +elif check_define __sparc__ ; then | ||
| 83 | + # We can't check for 64 bit (when gcc is biarch) or V8PLUSA | ||
| 84 | + # They must be specified using --sparc_cpu | ||
| 85 | + if check_define __arch64__ ; then | ||
| 86 | + cpu="sparc64" | ||
| 87 | + else | ||
| 88 | + cpu="sparc" | ||
| 89 | + fi | ||
| 82 | else | 90 | else |
| 83 | cpu=`test $(uname -s) = AIX && uname -p || uname -m` | 91 | cpu=`test $(uname -s) = AIX && uname -p || uname -m` |
| 84 | fi | 92 | fi |