Commit | Line | Data |
---|---|---|
21c9f626 RP |
1 | # This file is a shell script that supplies the information necessary |
2 | # to tailor a template configure script into the configure script | |
3 | # appropriate for this directory. For more information, check any | |
4 | # existing configure script. | |
5 | ||
3b4f1a5d | 6 | configdirs="doc" |
21c9f626 | 7 | srctrigger=libbfd.c |
5b2765bf | 8 | srcname="BFD" |
d89b9f99 | 9 | target_dependent=true |
21c9f626 RP |
10 | |
11 | # per-host: | |
12 | ||
5b2765bf JG |
13 | case "${host_cpu}" in |
14 | ||
15 | rs6000) my_host=rs6000 | |
16 | ;; | |
17 | ||
218ce930 JG |
18 | we32k) my_host=we32k ;; |
19 | ||
5b2765bf JG |
20 | mips) |
21 | case "${host_vendor}" in | |
22 | dec) my_host=decstation ;; | |
5868184b FF |
23 | sgi) |
24 | case "${host_os}" in | |
25 | irix3) my_host=irix3 ;; | |
26 | irix4) my_host=irix4 ;; | |
27 | esac | |
28 | ;; | |
5b2765bf JG |
29 | esac |
30 | ;; | |
31 | ||
32 | m88k) | |
33 | case "${host_vendor}" in | |
01dd1b2b | 34 | motorola) |
56b10d6d SC |
35 | my_host=delta88 ;; |
36 | harris) | |
37 | my_host=harris ;; | |
5b2765bf JG |
38 | *) |
39 | case "${host_os}" in | |
40 | dgux) my_host=dgux ;; | |
4dfe09da RP |
41 | esac |
42 | ;; | |
5b2765bf JG |
43 | esac |
44 | ;; | |
45 | ||
967d40ca | 46 | m68*) |
5b2765bf JG |
47 | case "${host_vendor}" in |
48 | cbm) | |
49 | case ${host_os} in | |
50 | amigados) my_host=amigados ;; | |
d89b9f99 | 51 | sysv4*) my_host=amix ;; |
4dfe09da RP |
52 | esac |
53 | ;; | |
5b2765bf JG |
54 | hp) |
55 | case "${host_os}" in | |
56 | hpux) my_host=hp9000 ;; | |
57 | bsd) my_host=hp300bsd ;; | |
4dfe09da RP |
58 | esac |
59 | ;; | |
5b2765bf JG |
60 | sony) my_host=news ;; |
61 | sun) my_host=sun3 ;; | |
77c3feee JG |
62 | apollo*) |
63 | case "${host_os}" in | |
5868184b | 64 | sysv*) my_host=apollov68 ;; |
ab37d4f6 | 65 | bsd*) my_host=apollo68 ;; |
77c3feee JG |
66 | esac |
67 | ;; | |
5b2765bf JG |
68 | esac |
69 | ;; | |
4dfe09da | 70 | |
d89b9f99 JG |
71 | i860) my_host=stratus |
72 | ;; | |
73 | ||
eafc6d85 | 74 | i386 | i486) |
5b2765bf | 75 | case "${host_vendor}" in |
5868184b FF |
76 | ncr*) |
77 | case "${host_os}" in | |
78 | sysv4*) my_host=ncr3000 ;; | |
79 | esac | |
80 | ;; | |
5b2765bf JG |
81 | *) |
82 | case "${host_os}" in | |
7b42a5d9 | 83 | go32) my_host=go32 ;; |
d89b9f99 | 84 | sysv4*) my_host=i386v4 ;; |
588d21ac | 85 | sysv* | scosysv*) my_host=i386v ;; |
56b10d6d SC |
86 | mach*) my_host=i386mach ;; |
87 | msdos*) my_host=dose ;; | |
f74d9941 | 88 | linux) my_host=i386linux ;; |
4dfe09da RP |
89 | esac |
90 | ;; | |
5b2765bf JG |
91 | esac |
92 | ;; | |
4dfe09da | 93 | |
5b2765bf JG |
94 | sparc) |
95 | case "${host_os}" in | |
52bcb9e3 | 96 | sunos64) my_host=sparc-ll ;; |
cf9395e5 JG |
97 | sysv4) my_host=sysv4 ;; |
98 | solaris2) my_host=solaris2 ;; | |
5868184b | 99 | sysv64) my_host=sysv4-ll ;; |
5b2765bf JG |
100 | *) my_host=sparc ;; |
101 | esac | |
102 | ;; | |
4dfe09da | 103 | |
5b2765bf JG |
104 | romp) my_host=rtbsd |
105 | ;; | |
126334ae | 106 | |
5b2765bf JG |
107 | a29k) my_host=ultra3 |
108 | ;; | |
126334ae | 109 | |
5b2765bf JG |
110 | tahoe) |
111 | my_host=tahoe | |
112 | ;; | |
113 | ||
114 | vax) | |
115 | case "${host_os}" in | |
77c3feee | 116 | ultrix*) my_host=vaxult ;; |
5b2765bf | 117 | *) my_host=vaxbsd ;; |
4dfe09da | 118 | esac |
5b2765bf | 119 | ;; |
eafc6d85 | 120 | hppa*) |
e3c01e92 SG |
121 | case "${host_vendor}" in |
122 | hp) | |
123 | case "${host_os}" in | |
124 | hpux) my_host=hppahpux ;; | |
125 | bsd) my_host=hppabsd ;; | |
126 | esac | |
127 | ;; | |
128 | esac | |
129 | ;; | |
5b2765bf | 130 | esac |
4dfe09da | 131 | |
5b2765bf | 132 | # Set up to make a link between the host's include file and "sysdep.h". |
5868184b | 133 | files="hosts/${my_host}.h" |
5b2765bf JG |
134 | links="sysdep.h" |
135 | ||
d89b9f99 | 136 | if [ ! -f ${srcdir}/${files} ] ; then |
5b2765bf | 137 | if [ -n "${my_host}" ] ; then |
eafc6d85 | 138 | echo '***' No file ${srcdir}/${files} 1>&2 |
5b2765bf | 139 | fi |
eafc6d85 | 140 | echo '***' ${srcname} does not support host ${host} 1>&2 |
21c9f626 RP |
141 | exit 1 |
142 | fi | |
143 | ||
5b2765bf | 144 | host_makefile_frag= |
5868184b FF |
145 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
146 | host_makefile_frag=config/${my_host}.mh | |
5b2765bf | 147 | fi |
4dfe09da | 148 | |
21c9f626 RP |
149 | # per-target: |
150 | ||
218ce930 JG |
151 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
152 | # Make sure that the left side always has two dashes. Otherwise you | |
153 | # can get spurious matches. Even for unambiguous cases, do this as a | |
154 | # convention, else the table becomes a real mess to understand and maintain. | |
155 | ||
1e730c4b JG |
156 | case "${target}" in |
157 | ||
158 | rs6000-ibm-* ) bfd_target=rs6000 ;; | |
159 | ||
160 | a29k-amd-ebmon ) bfd_target=a29k-coff ;; | |
161 | a29k-amd-udi ) bfd_target=a29k-coff ;; | |
162 | a29k-amd-* ) bfd_target=a29k-aout ;; | |
163 | ||
218ce930 JG |
164 | we32k-*-* ) bfd_target=we32k ;; |
165 | ||
1e730c4b | 166 | h8300-hitachi-* ) bfd_target=h8300-coff ;; |
1e730c4b JG |
167 | |
168 | i960-wrs-* ) bfd_target=i960-bout ;; | |
169 | m68k-wrs-* ) bfd_target=m68k-aout ;; | |
8fbd7d26 | 170 | m68k-netx-* ) bfd_target=m68k-aout ;; |
cf9395e5 | 171 | m680[01234]0-wrs-* ) bfd_target=m68k-aout ;; |
8fbd7d26 MT |
172 | m680[01234]0-netx-* ) bfd_target=m68k-aout ;; |
173 | m683?2-wrs-* ) bfd_target=m68k-aout ;; | |
174 | m683?2-netx-* ) bfd_target=m68k-aout ;; | |
175 | sparc-wrs-* ) bfd_target=sparc-aout ;; | |
1e730c4b | 176 | |
218ce930 | 177 | z8k*-*-* ) bfd_target=z8k-coff ;; |
eafc6d85 FF |
178 | m68*-ericsson-* ) bfd_target=m68k-aout ;; |
179 | ||
1e730c4b JG |
180 | m68k-sun-* ) bfd_target=m68k-aout ;; |
181 | m680[01234]0-sun-* ) bfd_target=m68k-aout ;; | |
8fbd7d26 | 182 | m683?2-sun-* ) bfd_target=m68k-aout ;; |
1e730c4b JG |
183 | sparc-sun-sysv4 ) bfd_target=sparc-elf ;; |
184 | sparc-sun-solaris2* ) bfd_target=sparc-elf ;; | |
185 | sparc-sun-* ) bfd_target=sparc-aout ;; | |
218ce930 | 186 | sparclite-fujitsu-* ) bfd_target=sparc-aout ;; |
1e730c4b JG |
187 | |
188 | mips-dec-* ) bfd_target=decstation ;; | |
189 | vax-dec-* ) bfd_target=vax ;; | |
190 | ||
191 | m68k-hp-hpux ) bfd_target=hp9000 ;; | |
192 | m680[01234]0-hp-hpux ) bfd_target=hp9000 ;; | |
8fbd7d26 | 193 | m683?2-hp-hpux ) bfd_target=hp9000 ;; |
1e730c4b JG |
194 | m68k-hp-bsd ) bfd_target=hp300bsd ;; |
195 | m60[01234]0-hp-bsd ) bfd_target=hp300bsd ;; | |
8fbd7d26 | 196 | m683?2-hp-bsd ) bfd_target=hp300bsd ;; |
1e730c4b JG |
197 | |
198 | mips-sgi-* ) bfd_target=irix3 ;; | |
199 | mips-big-* ) bfd_target=irix3 ;; | |
200 | ||
1e730c4b JG |
201 | m68k-none-os68k ) bfd_target=m68k-aout ;; |
202 | m680[01234]0-none-os68k ) bfd_target=m68k-aout ;; | |
8fbd7d26 | 203 | m683?2-none-os68k ) bfd_target=m68k-aout ;; |
1e730c4b JG |
204 | i386-sco-* ) bfd_target=i386-coff ;; |
205 | ||
8fbd7d26 MT |
206 | m68*-*-aout ) bfd_target=m68k-aout ;; |
207 | m68*-*-coff ) bfd_target=m68k-coff ;; | |
208 | ||
1e730c4b JG |
209 | a29k-none-aout ) bfd_target=a29k-aout ;; |
210 | a29k-none-coff ) bfd_target=a29k-coff ;; | |
211 | a29k-nyu-sym1 ) bfd_target=a29k-coff ;; | |
212 | ||
213 | m88k-harris-* ) bfd_target=m88k-coff ;; | |
214 | m88k-motorola-* ) bfd_target=m88k-coff ;; | |
215 | ||
216 | vax-*-* ) bfd_target=vax ;; | |
217 | tahoe-*-* ) bfd_target=tahoe ;; | |
218 | ||
eafc6d85 FF |
219 | hppa*-hp-hpux ) bfd_target=hppahpux ;; |
220 | hppa*-hp-bsd ) bfd_target=hppabsd ;; | |
221 | ||
218ce930 JG |
222 | i[34]86-*-sysv4* ) bfd_target=i386-elf ;; |
223 | ||
224 | tahoe-*-none ) bfd_target=${target_cpu} ;; | |
225 | vax-*-none ) bfd_target=${target_cpu} ;; | |
e3c01e92 | 226 | |
1e730c4b JG |
227 | *-*-aout ) bfd_target=${target_cpu}-aout ;; |
228 | *-*-bsd ) bfd_target=${target_cpu}-aout ;; | |
229 | *-*-sysv4* ) bfd_target=${target_cpu}-elf ;; | |
230 | *-*-solaris2* ) bfd_target=${target_cpu}-elf ;; | |
231 | *-*-go32 ) bfd_target=${target_cpu}-aout ;; | |
f74d9941 | 232 | *-*-linux* ) bfd_target=${target_cpu}-linux ;; |
1e730c4b JG |
233 | *-*-sysv* ) bfd_target=${target_cpu}-coff ;; |
234 | *-*-scosysv* ) bfd_target=${target_cpu}-coff ;; | |
1e730c4b JG |
235 | |
236 | i386-none-* ) bfd_target=i386-coff ;; | |
218ce930 | 237 | *-adobe-* ) bfd_target=adobe ;; |
1e730c4b JG |
238 | *-sony-* ) bfd_target=news ;; |
239 | *-intel-* ) bfd_target=${target_cpu}-coff ;; | |
240 | *-stratus-* ) bfd_target=${target_cpu}-elf ;; | |
241 | *-cbm-* ) bfd_target=${target_cpu}-elf ;; | |
242 | *-ncr-* ) bfd_target=${target_cpu}-elf ;; | |
218ce930 JG |
243 | *-hitachi-* ) echo "bad hitachi cpu"; exit 1 ;; |
244 | *-tandem-* ) bfd_target=st2000 ;; | |
56b10d6d | 245 | |
4dfe09da RP |
246 | esac |
247 | ||
5868184b | 248 | if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then |
5b2765bf | 249 | if [ -n "${bfd_target}" ] ; then |
eafc6d85 | 250 | echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2 |
5b2765bf | 251 | fi |
eafc6d85 FF |
252 | echo '***' BFD does not support target ${target} 1>&2 |
253 | echo '***' Look in bfd/configure.in for supported targets 1>&2 | |
21c9f626 RP |
254 | exit 1 |
255 | fi | |
5868184b | 256 | target_makefile_frag=config/${bfd_target}.mt |
4dfe09da | 257 | |
5b2765bf JG |
258 | # We don't do any links based on the target system, just very minor makefile |
259 | # config. |