* configure.ac (common): Make the default "yes" for all targets
[deliverable/binutils-gdb.git] / gdb / configure.host
... / ...
CommitLineData
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:
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
10# gdb_host_obs host-specific .o files to include
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 ;;
18arm*) gdb_host_cpu=arm ;;
19hppa*) gdb_host_cpu=pa ;;
20i[34567]86*) gdb_host_cpu=i386 ;;
21m68*) gdb_host_cpu=m68k ;;
22m88*) gdb_host_cpu=m88k ;;
23mips*) gdb_host_cpu=mips ;;
24powerpc*) gdb_host_cpu=powerpc ;;
25sparcv9 | sparc64) gdb_host_cpu=sparc ;;
26s390*) gdb_host_cpu=s390 ;;
27sh*) gdb_host_cpu=sh ;;
28x86_64*) gdb_host_cpu=i386 ;;
29xscale*) gdb_host_cpu=arm ;;
30m32r*) gdb_host_cpu=m32r ;;
31xtensa*) gdb_host_cpu=xtensa ;;
32*) gdb_host_cpu=$host_cpu ;;
33
34esac
35
36# map host info into gdb names.
37
38case "${host}" in
39
40alpha*-*-osf1*) gdb_host=alpha-osf1 ;;
41alpha*-*-osf2*) gdb_host=alpha-osf2 ;;
42alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
43alpha*-*-linux*) gdb_host=alpha-linux ;;
44alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
45 gdb_host=fbsd ;;
46alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
47 gdb_host=nbsd ;;
48alpha*-*-openbsd*) gdb_host=nbsd ;;
49
50arm*-*-linux*) gdb_host=linux ;;
51arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
52 gdb_host=nbsdelf ;;
53arm*-*-netbsd*) gdb_host=nbsdaout ;;
54arm*-*-openbsd*) gdb_host=nbsdelf ;;
55
56hppa*-*-hpux* | hppa*-*-hiux*)
57 gdb_host=hpux ;;
58hppa*-*-linux*) gdb_host=linux ;;
59hppa*-*-openbsd*) gdb_host=obsd ;;
60
61i[34567]86-ncr-*) gdb_host=ncr3000 ;;
62i[34567]86-*-dgux*) gdb_host=i386v4 ;;
63i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
64 gdb_host=fbsd ;;
65i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
66 gdb_host=nbsdelf ;;
67i[34567]86-*-netbsd*) gdb_host=nbsdaout ;;
68i[34567]86-*-go32*) gdb_host=go32 ;;
69i[34567]86-*-mingw32*) gdb_host=mingw
70 gdb_host_obs=mingw-hdep.o
71 ;;
72i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
73i[34567]86-*-linux*) gdb_host=linux ;;
74i[34567]86-*-lynxos*) gdb_host=i386lynx ;;
75i[34567]86-*-gnu*) gdb_host=i386gnu ;;
76i[3456]86-*-nto*) gdb_host=nto ;;
77i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
78 gdb_host=obsdaout ;;
79i[34567]86-*-openbsd*) gdb_host=obsd ;;
80i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
81i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
82i[34567]86-*-sco*) gdb_host=i386sco ;;
83i[34567]86-*-solaris2.1[0-9]*) gdb_host=sol2-64 ;;
84i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
85i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
86i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
87i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
88i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
89i[34567]86-*-unixware*) gdb_host=i386v4 ;;
90i[34567]86-*-sysv*) gdb_host=i386v ;;
91i[34567]86-*-isc*) gdb_host=i386v ;;
92i[34567]86-*-cygwin*) gdb_host=cygwin ;;
93
94ia64-*-linux*) gdb_host=linux ;;
95
96m68*-*-linux*) gdb_host=linux ;;
97m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
98 gdb_host=nbsdelf ;;
99m68*-*-netbsd*) gdb_host=nbsdaout ;;
100m68*-*-openbsd*) gdb_host=obsd ;;
101
102m88*-*-openbsd*) gdb_host=obsd ;;
103
104mips-sgi-irix5*) gdb_host=irix5 ;;
105mips-sgi-irix6*) gdb_host=irix6 ;;
106mips*-*-linux*) gdb_host=linux ;;
107mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
108 gdb_host=nbsd ;;
109mips64*-*-openbsd*) gdb_host=obsd64 ;;
110
111powerpc-*-aix*) gdb_host=aix ;;
112powerpc-*-linux*) gdb_host=linux ;;
113powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
114 gdb_host=nbsd ;;
115powerpc-*-openbsd*) gdb_host=obsd ;;
116
117powerpc64-*-linux*) gdb_host=ppc64-linux
118 # Support 'pseudo-native' debugging on the Cell BE
119 if test "${target_cpu}" = "spu"; then
120 gdb_host=spu-linux
121 gdb_native=yes
122 fi
123 ;;
124
125rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
126rs6000-*-aix4*) gdb_host=aix4 ;;
127rs6000-*-*) gdb_host=rs6000 ;;
128
129s390*-*-*) gdb_host=s390 ;;
130
131sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
132 gdb_host=nbsd ;;
133sh*-*-openbsd*) gdb_host=nbsd ;;
134
135sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
136 gdb_host=fbsd ;;
137sparc-*-linux*) gdb_host=linux ;;
138sparc64-*-linux*) gdb_host=linux64 ;;
139sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
140 gdb_host=nbsdelf ;;
141sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
142sparc-*-netbsd*) gdb_host=nbsdaout ;;
143sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
144 gdb_host=nbsd64 ;;
145sparc-*-openbsd*) gdb_host=nbsdelf ;;
146sparc64-*-openbsd*) gdb_host=nbsd64 ;;
147sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
148 gdb_host=sol2
149 ;;
150
151vax-*-bsd*) gdb_host=vax ;;
152vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
153 gdb_host=nbsdelf ;;
154vax-*-netbsd*) gdb_host=nbsdaout ;;
155vax-*-openbsd*) gdb_host=obsd ;;
156vax-*-ultrix*) gdb_host=vax ;;
157
158x86_64-*-linux*) gdb_host=linux64 ;;
159x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
160 gdb_host=fbsd64 ;;
161x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
162 gdb_host=nbsd64 ;;
163x86_64-*-openbsd*) gdb_host=obsd64 ;;
164
165m32r*-*-linux*) gdb_host=linux ;;
166
167xtensa*-*-linux*) gdb_host=linux ;;
168
169esac
170
171
172
173# Map the host/cpu onto the floatformat correspondong to C's "float",
174# "double" and "long double" types.
175
176case "${host}" in
177i[34567]86-*-*)
178 gdb_host_float_format="&floatformat_ieee_single_little"
179 gdb_host_double_format="&floatformat_ieee_double_little"
180 gdb_host_long_double_format="&floatformat_i387_ext"
181 ;;
182hppa*-*-linux*)
183 gdb_host_float_format="&floatformat_ieee_single_big"
184 gdb_host_double_format="&floatformat_ieee_double_big"
185 gdb_host_long_double_format="&floatformat_ieee_double_big"
186 ;;
187m68*-*-*)
188 gdb_host_float_format="&floatformat_ieee_single_big"
189 gdb_host_double_format="&floatformat_ieee_double_big"
190 gdb_host_long_double_format="&floatformat_m68881_ext"
191 ;;
192*)
193 gdb_host_float_format=0
194 gdb_host_double_format=0
195 gdb_host_long_double_format=0
196 ;;
197esac
This page took 0.022517 seconds and 4 git commands to generate.