* configure.host: Use aix.mh for all powerpc-aix hosts.
[external/binutils.git] / gdb / configure.host
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
11 # Map host cpu into the config cpu subdirectory name.
12 # The default is $host_cpu.
13
14 case "${host_cpu}" in
15
16 alpha*)                 gdb_host_cpu=alpha ;;
17 arm*)                   gdb_host_cpu=arm ;;
18 hppa*)                  gdb_host_cpu=pa ;;
19 i[34567]86*)            gdb_host_cpu=i386 ;;
20 m68*)                   gdb_host_cpu=m68k ;;
21 m88*)                   gdb_host_cpu=m88k ;;
22 mips*)                  gdb_host_cpu=mips ;;
23 powerpc*)               gdb_host_cpu=powerpc ;;
24 sparcv9 | sparc64)      gdb_host_cpu=sparc ;;
25 s390*)                  gdb_host_cpu=s390 ;;
26 sh*)                    gdb_host_cpu=sh ;;
27 x86_64*)                gdb_host_cpu=i386 ;;
28 xscale*)                gdb_host_cpu=arm ;;
29 m32r*)                  gdb_host_cpu=m32r ;;
30 *)                      gdb_host_cpu=$host_cpu ;;
31
32 esac
33
34 # map host info into gdb names.
35
36 case "${host}" in
37
38 alpha*-*-osf1*)         gdb_host=alpha-osf1 ;;
39 alpha*-*-osf2*)         gdb_host=alpha-osf2 ;;
40 alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
41 alpha*-*-linux*)        gdb_host=alpha-linux ;;
42 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
43                         gdb_host=fbsd ;;
44 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
45                         gdb_host=nbsd ;;
46 alpha*-*-openbsd*)      gdb_host=nbsd ;;
47
48 arm*-*-linux*)          gdb_host=linux ;;
49 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
50                         gdb_host=nbsdelf ;;
51 arm*-*-netbsd*)         gdb_host=nbsdaout ;;
52
53 hppa*-*-hiux*)          gdb_host=hppahpux ;;
54 hppa*-*-hpux10.20)      gdb_host=hpux1020 ;;
55 hppa*64*-*-hpux11*)     gdb_host=hpux11w ;;
56 hppa*-*-hpux11*)        gdb_host=hpux11 ;;
57 hppa*-*-hpux*)          gdb_host=hppahpux ;;
58 hppa*-*-linux*)         gdb_host=linux ;;
59 hppa*-*-openbsd*)       gdb_host=obsd ;;
60
61 i[34567]86-ncr-*)       gdb_host=ncr3000 ;;
62 i[34567]86-*-dgux*)     gdb_host=i386v4 ;;
63 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
64                         gdb_host=fbsd ;;
65 i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
66                         gdb_host=nbsdelf ;;
67 i[34567]86-*-netbsd*)   gdb_host=nbsdaout ;;
68 i[34567]86-*-go32*)     gdb_host=go32 ;;
69 i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
70 i[34567]86-*-linux*)    gdb_host=linux ;;
71 i[34567]86-*-lynxos*)   gdb_host=i386lynx ;;
72 i[34567]86-*-gnu*)      gdb_host=i386gnu ;;
73 i[3456]86-*-nto*)       gdb_host=nto ;;
74 i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
75                         gdb_host=obsdaout ;;
76 i[34567]86-*-openbsd*)  gdb_host=obsd ;;
77 i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
78 i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
79 i[34567]86-*-sco*)      gdb_host=i386sco ;;
80 i[34567]86-*-solaris*)  gdb_host=i386sol2 ;;
81 i[34567]86-*-sysv4.2*)  gdb_host=i386v42mp ;;
82 i[34567]86-*-sysv4*)    gdb_host=i386v4 ;;
83 i[34567]86-*-sysv5*)    gdb_host=i386v42mp ;;
84 i[34567]86-*-unixware2*)        gdb_host=i386v42mp ;;
85 i[34567]86-*-unixware*) gdb_host=i386v4 ;;
86 i[34567]86-*-sysv*)     gdb_host=i386v ;;
87 i[34567]86-*-isc*)      gdb_host=i386v ;;
88 i[34567]86-*-cygwin*)   gdb_host=cygwin ;;
89
90 ia64-*-aix*)            gdb_host=aix ;;
91 ia64-*-linux*)          gdb_host=linux ;;
92
93 m68*-*-linux*)          gdb_host=linux ;;
94 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
95                         gdb_host=nbsdelf ;;
96 m68*-*-netbsd*)         gdb_host=nbsdaout ;;
97 m68*-*-openbsd*)        gdb_host=obsd ;;
98
99 m88*-*-openbsd*)        gdb_host=obsd ;;
100
101 mips-sgi-irix5*)        gdb_host=irix5 ;;
102 mips-sgi-irix6*)        gdb_host=irix6 ;;
103 mips*-*-linux*)         gdb_host=linux ;;
104 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
105                         gdb_host=nbsd ;;
106
107 ns32k-*-netbsd*)        gdb_host=nbsdaout ;;
108
109 powerpc-*-aix*)         gdb_host=aix ;;
110 powerpc-*-linux*)       gdb_host=linux ;;
111 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
112                         gdb_host=nbsd ;;
113 powerpc-*-openbsd*)     gdb_host=obsd ;;
114
115 powerpc64-*-linux*)     gdb_host=ppc64-linux ;;
116
117 rs6000-*-lynxos*)       gdb_host=rs6000lynx ;;
118 rs6000-*-aix4*)         gdb_host=aix4 ;;
119 rs6000-*-*)             gdb_host=rs6000 ;;
120
121 s390*-*-*)              gdb_host=s390 ;;
122
123 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
124                         gdb_host=nbsd ;;
125
126 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
127                         gdb_host=fbsd ;;
128 sparc-*-linux*)         gdb_host=linux ;;
129 sparc64-*-linux*)       gdb_host=linux64 ;;
130 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
131                         gdb_host=nbsdelf ;;
132 sparc-*-netbsdaout*)    gdb_host=nbsdaout ;;
133 sparc-*-netbsd*)        gdb_host=nbsdaout ;;
134 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
135                         gdb_host=nbsd64 ;;
136 sparc-*-openbsd*)       gdb_host=nbsdelf ;;
137 sparc64-*-openbsd*)     gdb_host=nbsd64 ;;
138 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
139                         gdb_host=sol2
140                         ;;
141
142 vax-*-bsd*)             gdb_host=vax ;;
143 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
144                         gdb_host=nbsdelf ;;
145 vax-*-netbsd*)          gdb_host=nbsdaout ;;
146 vax-*-openbsd*)         gdb_host=obsd ;;
147 vax-*-ultrix*)          gdb_host=vax ;;
148
149 x86_64-*-linux*)        gdb_host=linux64 ;;
150 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
151                         gdb_host=fbsd64 ;;
152 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
153                         gdb_host=nbsd64 ;;
154 x86_64-*-openbsd*)      gdb_host=obsd64 ;;
155
156 m32r*-*-linux*)          gdb_host=linux ;;
157
158 esac
159
160
161
162 # Map the host/cpu onto the floatformat correspondong to C's "float",
163 # "double" and "long double" types.
164
165 case "${host}" in
166 i[34567]86-*-*)
167         gdb_host_float_format="&floatformat_ieee_single_little"
168         gdb_host_double_format="&floatformat_ieee_double_little"
169         gdb_host_long_double_format="&floatformat_i387_ext"
170         ;;
171 hppa*-*-linux*)
172         gdb_host_float_format="&floatformat_ieee_single_big"
173         gdb_host_double_format="&floatformat_ieee_double_big"
174         gdb_host_long_double_format="&floatformat_ieee_double_big"
175         ;;
176 *)
177         gdb_host_float_format=0
178         gdb_host_double_format=0
179         gdb_host_long_double_format=0
180         ;;
181 esac