Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / configure.host
blobc8c6673c5d96fdc10d9463010dc4d3f70a8241d0
1 # Mapping of configurations into GDB host definitions.  This is
2 # invoked from the autoconf generated configure script.
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
12 # Map host cpu into the config cpu subdirectory name.
13 # The default is $host_cpu.
15 case "${host_cpu}" in
17 alpha*)                 gdb_host_cpu=alpha ;;
18 arm*)                   gdb_host_cpu=arm ;;
19 hppa*)                  gdb_host_cpu=pa ;;
20 i[34567]86*)            gdb_host_cpu=i386 ;;
21 m68*)                   gdb_host_cpu=m68k ;;
22 m88*)                   gdb_host_cpu=m88k ;;
23 mips*)                  gdb_host_cpu=mips ;;
24 powerpc*)               gdb_host_cpu=powerpc ;;
25 sparcv9 | sparc64)      gdb_host_cpu=sparc ;;
26 s390*)                  gdb_host_cpu=s390 ;;
27 sh*)                    gdb_host_cpu=sh ;;
28 x86_64*)                gdb_host_cpu=i386 ;;
29 xscale*)                gdb_host_cpu=arm ;;
30 m32r*)                  gdb_host_cpu=m32r ;;
31 *)                      gdb_host_cpu=$host_cpu ;;
33 esac
35 # map host info into gdb names.
37 case "${host}" in
39 alpha*-*-osf1*)         gdb_host=alpha-osf1 ;;
40 alpha*-*-osf2*)         gdb_host=alpha-osf2 ;;
41 alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
42 alpha*-*-linux*)        gdb_host=alpha-linux ;;
43 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
44                         gdb_host=fbsd ;;
45 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
46                         gdb_host=nbsd ;;
47 alpha*-*-openbsd*)      gdb_host=nbsd ;;
49 arm*-*-linux*)          gdb_host=linux ;;
50 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
51                         gdb_host=nbsdelf ;;
52 arm*-*-netbsd*)         gdb_host=nbsdaout ;;
53 arm*-*-openbsd*)        gdb_host=nbsdelf ;;
55 hppa*-*-hpux* | hppa*-*-hiux*)
56                         gdb_host=hpux ;;
57 hppa*-*-linux*)         gdb_host=linux ;;
58 hppa*-*-netbsd*)        gdb_host=nbsd ;;
59 hppa*-*-openbsd*)       gdb_host=obsd ;;
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-*-mingw32*)  gdb_host=mingw
70                         gdb_host_obs=mingw-hdep.o
71                         ;;
72 i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
73 i[34567]86-*-linux*)    gdb_host=linux ;;
74 i[34567]86-*-lynxos*)   gdb_host=i386lynx ;;
75 i[34567]86-*-gnu*)      gdb_host=i386gnu ;;
76 i[3456]86-*-nto*)       gdb_host=nto ;;
77 i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
78                         gdb_host=obsdaout ;;
79 i[34567]86-*-openbsd*)  gdb_host=obsd ;;
80 i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
81 i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
82 i[34567]86-*-sco*)      gdb_host=i386sco ;;
83 i[34567]86-*-solaris2.1[0-9]*)  gdb_host=sol2-64 ;;
84 i[34567]86-*-solaris*)  gdb_host=i386sol2 ;;
85 i[34567]86-*-sysv4.2*)  gdb_host=i386v42mp ;;
86 i[34567]86-*-sysv4*)    gdb_host=i386v4 ;;
87 i[34567]86-*-sysv5*)    gdb_host=i386v42mp ;;
88 i[34567]86-*-unixware2*)        gdb_host=i386v42mp ;;
89 i[34567]86-*-unixware*) gdb_host=i386v4 ;;
90 i[34567]86-*-sysv*)     gdb_host=i386v ;;
91 i[34567]86-*-isc*)      gdb_host=i386v ;;
92 i[34567]86-*-cygwin*)   gdb_host=cygwin ;;
94 ia64-*-linux*)          gdb_host=linux ;;
96 m68*-*-linux*)          gdb_host=linux ;;
97 m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
98                         gdb_host=nbsdelf ;;
99 m68*-*-netbsd*)         gdb_host=nbsdaout ;;
100 m68*-*-openbsd*)        gdb_host=obsd ;;
102 m88*-*-openbsd*)        gdb_host=obsd ;;
104 mips-sgi-irix5*)        gdb_host=irix5 ;;
105 mips-sgi-irix6*)        gdb_host=irix6 ;;
106 mips*-*-linux*)         gdb_host=linux ;;
107 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
108                         gdb_host=nbsd ;;
109 mips64*-*-openbsd*)     gdb_host=obsd64 ;;
111 powerpc-*-aix*)         gdb_host=aix ;;
112 powerpc-*-linux*)       gdb_host=linux ;;
113 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
114                         gdb_host=nbsd ;;
115 powerpc64-*-netbsd* | powerpc64-*-knetbsd*-gnu)
116                         gdb_host=ppc64-nbsd ;;
117 powerpc-*-openbsd*)     gdb_host=obsd ;;
119 powerpc64-*-linux*)     gdb_host=ppc64-linux ;;
121 rs6000-*-lynxos*)       gdb_host=rs6000lynx ;;
122 rs6000-*-aix4*)         gdb_host=aix4 ;;
123 rs6000-*-*)             gdb_host=rs6000 ;;
125 s390*-*-*)              gdb_host=s390 ;;
127 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
128                         gdb_host=nbsd ;;
130 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
131                         gdb_host=fbsd ;;
132 sparc-*-linux*)         gdb_host=linux ;;
133 sparc64-*-linux*)       gdb_host=linux64 ;;
134 sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
135                         gdb_host=nbsdelf ;;
136 sparc-*-netbsdaout*)    gdb_host=nbsdaout ;;
137 sparc-*-netbsd*)        gdb_host=nbsdaout ;;
138 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
139                         gdb_host=nbsd64 ;;
140 sparc-*-openbsd*)       gdb_host=nbsdelf ;;
141 sparc64-*-openbsd*)     gdb_host=nbsd64 ;;
142 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
143                         gdb_host=sol2
144                         ;;
146 vax-*-bsd*)             gdb_host=vax ;;
147 vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
148                         gdb_host=nbsdelf ;;
149 vax-*-netbsd*)          gdb_host=nbsdaout ;;
150 vax-*-openbsd*)         gdb_host=obsd ;;
151 vax-*-ultrix*)          gdb_host=vax ;;
153 x86_64-*-linux*)        gdb_host=linux64 ;;
154 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
155                         gdb_host=fbsd64 ;;
156 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
157                         gdb_host=nbsd64 ;;
158 x86_64-*-openbsd*)      gdb_host=obsd64 ;;
160 m32r*-*-linux*)          gdb_host=linux ;;
162 esac
166 # Map the host/cpu onto the floatformat correspondong to C's "float",
167 # "double" and "long double" types.
169 case "${host}" in
170 i[34567]86-*-*)
171         gdb_host_float_format="&floatformat_ieee_single_little"
172         gdb_host_double_format="&floatformat_ieee_double_little"
173         gdb_host_long_double_format="&floatformat_i387_ext"
174         ;;
175 hppa*-*-linux*)
176         gdb_host_float_format="&floatformat_ieee_single_big"
177         gdb_host_double_format="&floatformat_ieee_double_big"
178         gdb_host_long_double_format="&floatformat_ieee_double_big"
179         ;;
180 m68*-*-*)
181         gdb_host_float_format="&floatformat_ieee_single_big"
182         gdb_host_double_format="&floatformat_ieee_double_big"
183         gdb_host_long_double_format="&floatformat_m68881_ext"
184         ;;
186         gdb_host_float_format=0
187         gdb_host_double_format=0
188         gdb_host_long_double_format=0
189         ;;
190 esac