2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
[deliverable/binutils-gdb.git] / gdb / configure.host
CommitLineData
c906108c
SS
1# Mapping of configurations into GDB host definitions. This is
2# invoked from the autoconf generated configure script.
3
4# This file sets the following shell variables:
c35f4ffc
AC
5# gdb_host_cpu generic name of host's CPU
6# gdb_host name of GDB host definition to use
7# gdb_host_float_format host's float floatformat, or 0
8# gdb_host_double_format host's double floatformat, or 0
9# gdb_host_long_double_format host's long double floatformat, or 0
121ce6e5 10# gdb_host_obs host-specific .o files to include
c906108c
SS
11
12# Map host cpu into the config cpu subdirectory name.
13# The default is $host_cpu.
14
15case "${host_cpu}" in
16
17alpha*) gdb_host_cpu=alpha ;;
f2ae7829 18arm*) gdb_host_cpu=arm ;;
c906108c 19hppa*) gdb_host_cpu=pa ;;
1581182a 20i[34567]86*) gdb_host_cpu=i386 ;;
c906108c 21m68*) gdb_host_cpu=m68k ;;
bf2ca189 22m88*) gdb_host_cpu=m88k ;;
2aa830e4 23mips*) gdb_host_cpu=mips ;;
c906108c 24powerpc*) gdb_host_cpu=powerpc ;;
ea87b71b 25sparcv9 | sparc64) gdb_host_cpu=sparc ;;
4009c677 26s390*) gdb_host_cpu=s390 ;;
13a38d45 27sh*) gdb_host_cpu=sh ;;
abf22e64 28x86_64*) gdb_host_cpu=i386 ;;
7a76ced5 29xscale*) gdb_host_cpu=arm ;;
ee84457a 30m32r*) gdb_host_cpu=m32r ;;
c906108c
SS
31*) gdb_host_cpu=$host_cpu ;;
32
33esac
34
35# map host info into gdb names.
36
37case "${host}" in
38
c906108c
SS
39alpha*-*-osf1*) gdb_host=alpha-osf1 ;;
40alpha*-*-osf2*) gdb_host=alpha-osf2 ;;
41alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
42alpha*-*-linux*) gdb_host=alpha-linux ;;
69489883
NN
43alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
44 gdb_host=fbsd ;;
45alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
46 gdb_host=nbsd ;;
2031c21a 47alpha*-*-openbsd*) gdb_host=nbsd ;;
c906108c 48
f2ae7829 49arm*-*-linux*) gdb_host=linux ;;
69489883
NN
50arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
51 gdb_host=nbsdelf ;;
9eeef8ef 52arm*-*-netbsd*) gdb_host=nbsdaout ;;
872544e5 53arm*-*-openbsd*) gdb_host=nbsdelf ;;
c906108c 54
eeb8076c
MK
55hppa*-*-hpux* | hppa*-*-hiux*)
56 gdb_host=hpux ;;
50306a9d 57hppa*-*-linux*) gdb_host=linux ;;
0e56aeaf 58hppa*-*-openbsd*) gdb_host=obsd ;;
c906108c 59
1581182a 60i[34567]86-ncr-*) gdb_host=ncr3000 ;;
1581182a 61i[34567]86-*-dgux*) gdb_host=i386v4 ;;
48184fd4
AC
62i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
63 gdb_host=fbsd ;;
64i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
65 gdb_host=nbsdelf ;;
1581182a
MK
66i[34567]86-*-netbsd*) gdb_host=nbsdaout ;;
67i[34567]86-*-go32*) gdb_host=go32 ;;
121ce6e5
DJ
68i[34567]86-*-mingw32*) gdb_host=mingw
69 gdb_host_obs=mingw-hdep.o
70 ;;
1581182a
MK
71i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
72i[34567]86-*-linux*) gdb_host=linux ;;
73i[34567]86-*-lynxos*) gdb_host=i386lynx ;;
74i[34567]86-*-gnu*) gdb_host=i386gnu ;;
61bb466e 75i[3456]86-*-nto*) gdb_host=nto ;;
ba361932
MK
76i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
77 gdb_host=obsdaout ;;
1581182a
MK
78i[34567]86-*-openbsd*) gdb_host=obsd ;;
79i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
80i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
81i[34567]86-*-sco*) gdb_host=i386sco ;;
0bbc026e 82i[34567]86-*-solaris2.1[0-9]*) gdb_host=sol2-64 ;;
1581182a
MK
83i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
84i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
85i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
86i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
87i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
88i[34567]86-*-unixware*) gdb_host=i386v4 ;;
89i[34567]86-*-sysv*) gdb_host=i386v ;;
90i[34567]86-*-isc*) gdb_host=i386v ;;
91i[34567]86-*-cygwin*) gdb_host=cygwin ;;
eafb8301
KB
92
93ia64-*-linux*) gdb_host=linux ;;
94
c906108c 95m68*-*-linux*) gdb_host=linux ;;
69489883
NN
96m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
97 gdb_host=nbsdelf ;;
9eeef8ef 98m68*-*-netbsd*) gdb_host=nbsdaout ;;
8f2d3ea0 99m68*-*-openbsd*) gdb_host=obsd ;;
3c7012f5 100
bf2ca189
MK
101m88*-*-openbsd*) gdb_host=obsd ;;
102
c906108c 103mips-sgi-irix5*) gdb_host=irix5 ;;
1d06468c 104mips-sgi-irix6*) gdb_host=irix6 ;;
2aa830e4 105mips*-*-linux*) gdb_host=linux ;;
69489883
NN
106mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
107 gdb_host=nbsd ;;
abc08782 108mips64*-*-openbsd*) gdb_host=obsd64 ;;
c906108c 109
6328991e 110powerpc-*-aix*) gdb_host=aix ;;
c906108c 111powerpc-*-linux*) gdb_host=linux ;;
69489883
NN
112powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
113 gdb_host=nbsd ;;
d195bc9f 114powerpc-*-openbsd*) gdb_host=obsd ;;
c906108c 115
8fbb30b1
JB
116powerpc64-*-linux*) gdb_host=ppc64-linux ;;
117
c906108c
SS
118rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
119rs6000-*-aix4*) gdb_host=aix4 ;;
120rs6000-*-*) gdb_host=rs6000 ;;
121
4009c677
AC
122s390*-*-*) gdb_host=s390 ;;
123
69489883
NN
124sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
125 gdb_host=nbsd ;;
13a38d45 126
69489883
NN
127sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
128 gdb_host=fbsd ;;
c906108c 129sparc-*-linux*) gdb_host=linux ;;
386c036b 130sparc64-*-linux*) gdb_host=linux64 ;;
69489883
NN
131sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
132 gdb_host=nbsdelf ;;
9eeef8ef
JT
133sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
134sparc-*-netbsd*) gdb_host=nbsdaout ;;
69489883
NN
135sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
136 gdb_host=nbsd64 ;;
f2cab569
MK
137sparc-*-openbsd*) gdb_host=nbsdelf ;;
138sparc64-*-openbsd*) gdb_host=nbsd64 ;;
386c036b
MK
139sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
140 gdb_host=sol2
141 ;;
c906108c 142
b9e1c0d6 143vax-*-bsd*) gdb_host=vax ;;
69489883
NN
144vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
145 gdb_host=nbsdelf ;;
6f606e1c 146vax-*-netbsd*) gdb_host=nbsdaout ;;
9f076e7a 147vax-*-openbsd*) gdb_host=obsd ;;
b9e1c0d6 148vax-*-ultrix*) gdb_host=vax ;;
c906108c 149
9c1488cb 150x86_64-*-linux*) gdb_host=linux64 ;;
69489883
NN
151x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
152 gdb_host=fbsd64 ;;
153x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
154 gdb_host=nbsd64 ;;
e2879ccb 155x86_64-*-openbsd*) gdb_host=obsd64 ;;
abf22e64 156
ee84457a
AC
157m32r*-*-linux*) gdb_host=linux ;;
158
c906108c 159esac
c35f4ffc
AC
160
161
162
163# Map the host/cpu onto the floatformat correspondong to C's "float",
164# "double" and "long double" types.
165
166case "${host}" in
167i[34567]86-*-*)
168 gdb_host_float_format="&floatformat_ieee_single_little"
169 gdb_host_double_format="&floatformat_ieee_double_little"
170 gdb_host_long_double_format="&floatformat_i387_ext"
171 ;;
172hppa*-*-linux*)
173 gdb_host_float_format="&floatformat_ieee_single_big"
174 gdb_host_double_format="&floatformat_ieee_double_big"
175 gdb_host_long_double_format="&floatformat_ieee_double_big"
176 ;;
ced0d73d
AS
177m68*-*-*)
178 gdb_host_float_format="&floatformat_ieee_single_big"
179 gdb_host_double_format="&floatformat_ieee_double_big"
180 gdb_host_long_double_format="&floatformat_m68881_ext"
181 ;;
c35f4ffc
AC
182*)
183 gdb_host_float_format=0
184 gdb_host_double_format=0
185 gdb_host_long_double_format=0
186 ;;
187esac
This page took 0.430999 seconds and 4 git commands to generate.