Revision 0b0babc6 configure
b/configure | ||
---|---|---|
27 | 27 |
make="make" |
28 | 28 |
strip="strip" |
29 | 29 |
cpu=`uname -m` |
30 |
target_list="i386-user i386 i386-softmmu arm-user armeb-user sparc-user ppc-user ppc-softmmu sparc-softmmu" |
|
30 |
target_list="i386-user i386 i386-softmmu arm-user armeb-user sparc-user ppc-user ppc-softmmu sparc-softmmu x86_64-softmmu"
|
|
31 | 31 |
case "$cpu" in |
32 | 32 |
i386|i486|i586|i686|i86pc|BePC) |
33 | 33 |
cpu="i386" |
... | ... | |
63 | 63 |
cpu="m68k" |
64 | 64 |
;; |
65 | 65 |
x86_64|amd64) |
66 |
cpu="amd64"
|
|
66 |
cpu="x86_64"
|
|
67 | 67 |
;; |
68 | 68 |
*) |
69 | 69 |
cpu="unknown" |
... | ... | |
383 | 383 |
if test "$cpu" = "i386" ; then |
384 | 384 |
echo "ARCH=i386" >> $config_mak |
385 | 385 |
echo "#define HOST_I386 1" >> $config_h |
386 |
elif test "$cpu" = "amd64" ; then
|
|
387 |
echo "ARCH=amd64" >> $config_mak
|
|
388 |
echo "#define HOST_AMD64 1" >> $config_h
|
|
386 |
elif test "$cpu" = "x86_64" ; then
|
|
387 |
echo "ARCH=x86_64" >> $config_mak
|
|
388 |
echo "#define HOST_X86_64 1" >> $config_h
|
|
389 | 389 |
elif test "$cpu" = "armv4b" ; then |
390 | 390 |
echo "ARCH=arm" >> $config_mak |
391 | 391 |
echo "#define HOST_ARM 1" >> $config_h |
... | ... | |
538 | 538 |
echo "TARGET_ARCH=ppc" >> $config_mak |
539 | 539 |
echo "#define TARGET_ARCH \"ppc\"" >> $config_h |
540 | 540 |
echo "#define TARGET_PPC 1" >> $config_h |
541 |
elif test "$target_cpu" = "x86_64" ; then |
|
542 |
echo "TARGET_ARCH=x86_64" >> $config_mak |
|
543 |
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h |
|
544 |
echo "#define TARGET_I386 1" >> $config_h |
|
545 |
echo "#define TARGET_X86_64 1" >> $config_h |
|
541 | 546 |
else |
542 | 547 |
echo "Unsupported target CPU" |
543 | 548 |
exit 1 |
Also available in: Unified diff