2002-03-01 David O'Brien <obrien@FreeBSD.org>
[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
8 # Map host cpu into the config cpu subdirectory name.
9 # The default is $host_cpu.
10
11 case "${host_cpu}" in
12
13 alpha*)                 gdb_host_cpu=alpha ;;
14 arm*)                   gdb_host_cpu=arm ;;
15 hppa*)                  gdb_host_cpu=pa ;;
16 i[3456]86*)             gdb_host_cpu=i386 ;;
17 m68*)                   gdb_host_cpu=m68k ;;
18 m88*)                   gdb_host_cpu=m88k ;;
19 mips*)                  gdb_host_cpu=mips ;;
20 powerpc*)               gdb_host_cpu=powerpc ;;
21 sparcv9 | sparc64)      gdb_host_cpu=sparc ;;
22 s390*)                  gdb_host_cpu=s390 ;;
23 x86_64*)                gdb_host_cpu=i386 ;;
24 *)                      gdb_host_cpu=$host_cpu ;;
25
26 esac
27
28 # map host info into gdb names.
29
30 case "${host}" in
31
32 alpha*-*-osf1*)         gdb_host=alpha-osf1 ;;
33 alpha*-*-osf2*)         gdb_host=alpha-osf2 ;;
34 alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
35 alpha*-*-linux*)        gdb_host=alpha-linux ;;
36 alpha*-*-freebsd*)      gdb_host=fbsd ;;
37
38 arm*-*-linux*)          gdb_host=linux ;;
39 arm*-*-netbsd*)         gdb_host=nbsd ;;
40 arm*-*-*)               gdb_host=arm ;;
41
42 hppa*-*-bsd*)           gdb_host=hppabsd ;;
43 hppa*-*-hiux*)          gdb_host=hppahpux ;;
44 hppa*-*-hpux10.20)      gdb_host=hpux1020 ;;
45 hppa*64*-*-hpux11*)     gdb_host=hpux11w ;;
46 hppa*-*-hpux11*)        gdb_host=hpux11 ;;
47 hppa*-*-hpux*)          gdb_host=hppahpux ;;
48 hppa*-*-osf*)           gdb_host=hppaosf ;;
49
50 i[3456]86-ncr-*)        gdb_host=ncr3000 ;;
51 i[3456]86-sequent-bsd*) gdb_host=symmetry ;;  # dynix
52 i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
53 i[3456]86-sequent-sysv*) gdb_host=ptx ;;
54 i[3456]86-*-aix*)       gdb_host=i386aix ;;
55 i[3456]86-*-bsd*)       gdb_host=i386bsd ;;
56 i[3456]86-*-dgux*)      gdb_host=i386dgux ;;
57 i[3456]86-*-freebsd*)   gdb_host=fbsd ;;
58 i[3456]86-*-netbsdelf*) gdb_host=nbsdelf ;;
59 i[3456]86-*-netbsdaout*) gdb_host=nbsd ;;
60 i[3456]86-*-netbsd*)    gdb_host=nbsd ;;
61 i[3456]86-*-go32*)      gdb_host=go32 ;;
62 i[3456]86-*-msdosdjgpp*) gdb_host=go32 ;;
63 i[3456]86-*-linux*)     gdb_host=linux ;;
64 i[3456]86-*-lynxos*)    gdb_host=i386lynx ;;
65 i[3456]86-*-mach3*)     gdb_host=i386m3 ;;
66 i[3456]86-*-mach*)      gdb_host=i386mach ;;
67 i[3456]86-*-gnu*)       gdb_host=i386gnu ;;
68 i[3456]86-*-openbsd*)   gdb_host=obsd ;;
69 i[3456]86-*-osf1mk*)    gdb_host=i386mk ;;
70 i[3456]86-*-sco3.2v5*)  gdb_host=i386sco5 ;;
71 i[3456]86-*-sco3.2v4*)  gdb_host=i386sco4 ;;
72 i[3456]86-*-sco*)       gdb_host=i386sco ;;
73 i[3456]86-*-solaris*)   gdb_host=i386sol2 ;;
74 i[3456]86-*-sysv3.2*)   gdb_host=i386v32 ;;
75 i[3456]86-*-sysv32*)    gdb_host=i386v32 ;;
76 i[3456]86-*-sysv4.2*)   gdb_host=i386v42mp ;;
77 i[3456]86-*-sysv4*)     gdb_host=i386v4 ;;
78 i[3456]86-*-sysv5*)     gdb_host=i386v42mp ;;
79 i[3456]86-*-unixware2*) gdb_host=i386v42mp ;;
80 i[3456]86-*-unixware*)  gdb_host=i386v4 ;;
81 i[3456]86-*-sysv*)      gdb_host=i386v ;;
82 i[3456]86-*-isc*)       gdb_host=i386v32 ;;
83 i[3456]86-*-cygwin*)    gdb_host=cygwin ;;
84
85 ia64-*-aix*)            gdb_host=aix ;;
86 ia64-*-linux*)          gdb_host=linux ;;
87
88 m680[01]0-sun-sunos3*)  gdb_host=sun2os3 ;;
89 m680[01]0-sun-sunos4*)  gdb_host=sun2os4 ;;
90
91 m68*-apollo*-sysv*)     gdb_host=apollo68v ;;
92 m68*-apollo*-bsd*)      gdb_host=apollo68b ;;
93 m68*-att-*)             gdb_host=3b1 ;;
94 m68*-bull*-sysv*)       gdb_host=dpx2 ;;
95 m68*-hp-bsd*)           gdb_host=hp300bsd ;;
96 m68*-hp-hpux*)          gdb_host=hp300hpux ;;
97 m68*-*-linux*)          gdb_host=linux ;;
98 m68*-*-lynxos*)         gdb_host=m68klynx ;;
99 m68*-*-netbsd*)         gdb_host=nbsd ;;
100 m68*-*-sysv4*)          gdb_host=m68kv4 ;;
101 m68*-motorola-*)        gdb_host=delta68 ;;
102 m68*-sun-sunos3*)       gdb_host=sun3os3 ;;
103 m68*-sun-sunos4*)       gdb_host=sun3os4 ;;
104 m68*-sun-*)             gdb_host=sun3os4 ;;
105
106 m88*-motorola-sysv4*)   gdb_host=delta88v4 ;;
107 m88*-motorola-sysv*)    gdb_host=delta88 ;;
108 m88*-*-*)               gdb_host=m88k ;;
109
110 mips-dec-mach3*)        gdb_host=mipsm3 ;;
111 mips-dec-*)             gdb_host=decstation ;;
112 mips-little-*)          gdb_host=littlemips ;;
113 mips-sgi-irix3*)        gdb_host=irix3 ;;
114 mips-sgi-irix4*)        gdb_host=irix4 ;;
115 mips-sgi-irix5*)        gdb_host=irix5 ;;
116 mips-sgi-irix6*)        gdb_host=irix6 ;;
117 mips-sony-*)            gdb_host=news-mips ;;
118 mips*-*-linux*)         gdb_host=linux ;;
119 mips-*-mach3*)          gdb_host=mipsm3 ;;
120 mips-*-sysv4*)          gdb_host=mipsv4 ;;
121 mips-*-sysv*)           gdb_host=riscos ;;
122 mips-*-riscos*)         gdb_host=riscos ;;
123
124 none-*-*)               gdb_host=none ;;
125
126 ns32k-*-netbsd*)        gdb_host=nbsd ;;
127
128 powerpc-*-aix*)         gdb_host=aix ;;
129 powerpc-*-linux*)       gdb_host=linux ;;
130 powerpc-*-netbsd*)      gdb_host=nbsd ;;
131
132 rs6000-*-lynxos*)       gdb_host=rs6000lynx ;;
133 rs6000-*-aix4*)         gdb_host=aix4 ;;
134 rs6000-*-*)             gdb_host=rs6000 ;;
135
136 s390*-*-*)              gdb_host=s390 ;;
137
138 sparc-*-linux*)         gdb_host=linux ;;
139 sparc-*-lynxos*)        gdb_host=sparclynx ;;
140 sparc-*-netbsdelf*)     gdb_host=nbsdelf ;;
141 sparc-*-netbsdaout*)    gdb_host=nbsd ;;
142 sparc-*-netbsd*)        gdb_host=nbsd ;;
143 sparc-*-solaris2*)      gdb_host=sun4sol2 ;;
144 sparc-*-sunos4*)        gdb_host=sun4os4 ;;
145 sparc-*-sunos5*)        gdb_host=sun4sol2 ;;
146 sparc-*-*)              gdb_host=sun4os4 ;;
147 sparc64-*-freebsd*|ultrasparc-*-freebsd*|sparcv9-*-freebsd*)
148                         gdb_host=fbsd ;;
149 sparc64-*-linux*)       gdb_host=linux ;;
150 sparcv9-*-* | sparc64-*-*) gdb_host=sun4sol2 ;;
151
152 strongarm-*-*)          gdb_host=arm ;;
153 xscale-*-*)             gdb_host=arm ;;
154
155 vax-*-bsd*)             gdb_host=vaxbsd ;;
156 vax-*-ultrix2*)         gdb_host=vaxult2 ;;
157 vax-*-ultrix*)          gdb_host=vaxult ;;
158
159 x86_64-*-linux*)        gdb_host=x86-64linux ;;
160
161 esac