47 |
s390) |
s390) |
48 |
cpu="s390" |
cpu="s390" |
49 |
;; |
;; |
50 |
|
sparc) |
51 |
|
cpu="sparc" |
52 |
|
;; |
53 |
|
sparc64) |
54 |
|
cpu="sparc64" |
55 |
|
;; |
56 |
ia64) |
ia64) |
57 |
cpu="ia64" |
cpu="ia64" |
58 |
;; |
;; |
137 |
else |
else |
138 |
|
|
139 |
# if cross compiling, cannot launch a program, so make a static guess |
# if cross compiling, cannot launch a program, so make a static guess |
140 |
if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then |
if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" -o "$cpu" = "sparc" -o "$cpu" = "sparc64"; then |
141 |
bigendian="yes" |
bigendian="yes" |
142 |
fi |
fi |
143 |
|
|
223 |
elif test "$cpu" = "alpha" ; then |
elif test "$cpu" = "alpha" ; then |
224 |
echo "ARCH=alpha" >> config.mak |
echo "ARCH=alpha" >> config.mak |
225 |
echo "#define HOST_ALPHA 1" >> $TMPH |
echo "#define HOST_ALPHA 1" >> $TMPH |
226 |
|
elif test "$cpu" = "sparc" ; then |
227 |
|
echo "ARCH=sparc" >> config.mak |
228 |
|
echo "#define HOST_SPARC 1" >> $TMPH |
229 |
|
elif test "$cpu" = "sparc64" ; then |
230 |
|
echo "ARCH=sparc64" >> config.mak |
231 |
|
echo "#define HOST_SPARC64 1" >> $TMPH |
232 |
elif test "$cpu" = "ia64" ; then |
elif test "$cpu" = "ia64" ; then |
233 |
echo "ARCH=ia64" >> config.mak |
echo "ARCH=ia64" >> config.mak |
234 |
echo "#define HOST_IA64 1" >> $TMPH |
echo "#define HOST_IA64 1" >> $TMPH |