Commit 295defa5f1fc5f270727e128f95e561a1d47858c
1 parent
f801f97e
alpha addition
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@74 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
9 additions
and
1 deletions
configure
@@ -36,7 +36,7 @@ case "$cpu" in | @@ -36,7 +36,7 @@ case "$cpu" in | ||
36 | alpha) | 36 | alpha) |
37 | cpu="alpha" | 37 | cpu="alpha" |
38 | ;; | 38 | ;; |
39 | - "Power Macintosh"|ppc) | 39 | + "Power Macintosh"|ppc|ppc64) |
40 | cpu="powerpc" | 40 | cpu="powerpc" |
41 | ;; | 41 | ;; |
42 | mips) | 42 | mips) |
@@ -209,14 +209,22 @@ echo "CFLAGS=$CFLAGS" >> config.mak | @@ -209,14 +209,22 @@ echo "CFLAGS=$CFLAGS" >> config.mak | ||
209 | echo "LDFLAGS=$LDFLAGS" >> config.mak | 209 | echo "LDFLAGS=$LDFLAGS" >> config.mak |
210 | if test "$cpu" = "x86" ; then | 210 | if test "$cpu" = "x86" ; then |
211 | echo "ARCH=i386" >> config.mak | 211 | echo "ARCH=i386" >> config.mak |
212 | + echo "#define HOST_I386 1" >> $TMPH | ||
212 | elif test "$cpu" = "armv4l" ; then | 213 | elif test "$cpu" = "armv4l" ; then |
213 | echo "ARCH=arm" >> config.mak | 214 | echo "ARCH=arm" >> config.mak |
215 | + echo "#define HOST_ARM 1" >> $TMPH | ||
214 | elif test "$cpu" = "powerpc" ; then | 216 | elif test "$cpu" = "powerpc" ; then |
215 | echo "ARCH=ppc" >> config.mak | 217 | echo "ARCH=ppc" >> config.mak |
218 | + echo "#define HOST_PPC 1" >> $TMPH | ||
216 | elif test "$cpu" = "mips" ; then | 219 | elif test "$cpu" = "mips" ; then |
217 | echo "ARCH=mips" >> config.mak | 220 | echo "ARCH=mips" >> config.mak |
221 | + echo "#define HOST_MIPS 1" >> $TMPH | ||
218 | elif test "$cpu" = "s390" ; then | 222 | elif test "$cpu" = "s390" ; then |
219 | echo "ARCH=s390" >> config.mak | 223 | echo "ARCH=s390" >> config.mak |
224 | + echo "#define HOST_S390 1" >> $TMPH | ||
225 | +elif test "$cpu" = "alpha" ; then | ||
226 | + echo "ARCH=alpha" >> config.mak | ||
227 | + echo "#define HOST_ALPHA 1" >> $TMPH | ||
220 | else | 228 | else |
221 | echo "Unsupported CPU" | 229 | echo "Unsupported CPU" |
222 | exit 1 | 230 | exit 1 |