Fix checkin botch.
[deliverable/binutils-gdb.git] / bfd / configure.in
CommitLineData
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 6configdirs="doc"
21c9f626 7srctrigger=libbfd.c
5b2765bf 8srcname="BFD"
d89b9f99 9target_dependent=true
21c9f626
RP
10
11# per-host:
12
5b2765bf
JG
13case "${host_cpu}" in
14
15rs6000) my_host=rs6000
16 ;;
17
18mips)
19 case "${host_vendor}" in
20 dec) my_host=decstation ;;
21 sgi) my_host=irix3 ;;
22 esac
23 ;;
24
25m88k)
26 case "${host_vendor}" in
01dd1b2b 27 motorola)
56b10d6d
SC
28 my_host=delta88 ;;
29 harris)
30 my_host=harris ;;
5b2765bf
JG
31 *)
32 case "${host_os}" in
33 dgux) my_host=dgux ;;
4dfe09da
RP
34 esac
35 ;;
5b2765bf
JG
36 esac
37 ;;
38
39m68k)
40 case "${host_vendor}" in
41 cbm)
42 case ${host_os} in
43 amigados) my_host=amigados ;;
d89b9f99 44 sysv4*) my_host=amix ;;
4dfe09da
RP
45 esac
46 ;;
5b2765bf
JG
47 hp)
48 case "${host_os}" in
49 hpux) my_host=hp9000 ;;
50 bsd) my_host=hp300bsd ;;
4dfe09da
RP
51 esac
52 ;;
5b2765bf
JG
53 sony) my_host=news ;;
54 sun) my_host=sun3 ;;
55 esac
56 ;;
4dfe09da 57
d89b9f99
JG
58i860) my_host=stratus
59 ;;
60
5b2765bf
JG
61i386)
62 case "${host_vendor}" in
63 *)
64 case "${host_os}" in
d89b9f99 65 sysv4*) my_host=i386v4 ;;
588d21ac 66 sysv* | scosysv*) my_host=i386v ;;
56b10d6d
SC
67 mach*) my_host=i386mach ;;
68 msdos*) my_host=dose ;;
4dfe09da
RP
69 esac
70 ;;
5b2765bf
JG
71 esac
72 ;;
4dfe09da 73
5b2765bf
JG
74sparc)
75 case "${host_os}" in
52bcb9e3 76 sunos64) my_host=sparc-ll ;;
5b2765bf
JG
77 *) my_host=sparc ;;
78 esac
79 ;;
4dfe09da 80
5b2765bf
JG
81romp) my_host=rtbsd
82 ;;
126334ae 83
5b2765bf
JG
84a29k) my_host=ultra3
85 ;;
126334ae 86
5b2765bf
JG
87tahoe)
88 my_host=tahoe
89 ;;
90
91vax)
92 case "${host_os}" in
93 ultrix) my_host=vaxult ;;
94 *) my_host=vaxbsd ;;
4dfe09da 95 esac
5b2765bf
JG
96 ;;
97esac
4dfe09da 98
5b2765bf
JG
99# Set up to make a link between the host's include file and "sysdep.h".
100files="hosts/h-${my_host}.h"
101links="sysdep.h"
102
d89b9f99 103if [ ! -f ${srcdir}/${files} ] ; then
5b2765bf 104 if [ -n "${my_host}" ] ; then
d89b9f99 105 echo '***' No file ${srcdir}/${files}
5b2765bf
JG
106 fi
107 echo '***' ${srcname} does not support host ${host}
21c9f626
RP
108 exit 1
109fi
110
5b2765bf 111host_makefile_frag=
d89b9f99 112if [ -f ${srcdir}/config/mh-${my_host} ] ; then
4b39ad32 113 host_makefile_frag=config/mh-${my_host}
5b2765bf 114fi
4dfe09da 115
21c9f626
RP
116# per-target:
117
a71bfbcc 118case "${target_vendor}" in
5b2765bf 119aout | coff | bout | elf) bfd_target=${target_cpu}-${target_vendor} ;;
d33598ee
SC
120sony) bfd_target=news ;;
121intel) bfd_target=${target_cpu}-coff ;;
d89b9f99
JG
122stratus | cbm | ncr) bfd_target=${target_cpu}-elf ;;
123
124unknown)
125 case "${target_os}" in
126 bsd) bfd_target=${target_cpu}-aout ;;
127 sysv4*) bfd_target=${target_cpu}-elf ;;
588d21ac 128 sysv* | scosysv*) bfd_target=${target_cpu}-coff ;;
d89b9f99
JG
129 none) case "${target_cpu}" in
130 tahoe | vax) bfd_target=${target_cpu} ;;
131 esac
132 esac
133 ;;
4e6f9223 134
cbdc7909
JG
135ibm) my_host=rs6000
136 case "${target_cpu}" in
137 rs6000) bfd_target=rs6000 ;;
138 esac
139 ;;
140
a928109b
JG
141amd)
142 case "${target_os}" in
143 ebmon) bfd_target=a29k-coff ;;
144 *) bfd_target=a29k-aout ;;
145 esac
146 ;;
147
4e6f9223
SC
148hitachi)
149 case "${target_cpu}" in
3b4f1a5d 150 h8300) bfd_target=h8300-coff ;;
4e6f9223
SC
151 *) echo "bad hitachi cpu" ;;
152 esac
153 ;;
154
155
a71bfbcc 156wrs)
4dfe09da 157 case "${target_cpu}" in
a71bfbcc
RP
158 i960) bfd_target=i960-bout ;;
159 m68k) bfd_target=m68k-aout ;;
4dfe09da
RP
160 esac
161 ;;
a71bfbcc 162sun)
4dfe09da 163 case "${target_cpu}" in
a71bfbcc
RP
164 m68k) bfd_target=m68k-aout ;;
165 sparc) bfd_target=sparc-aout ;;
166 esac
167 ;;
168dec)
169 case "${target_cpu}" in
a928109b 170 mips) bfd_target=decstation ;;
2ccc2383 171 vax) bfd_target=vax ;;
a71bfbcc
RP
172 esac
173 ;;
174hp)
175 case "${target_cpu}" in
176 m68k)
177 case "${target_os}" in
178 hpux) bfd_target=hp9000 ;;
179 bsd) bfd_target=hp300bsd ;;
4dfe09da
RP
180 esac
181 ;;
182 esac
183 ;;
4e6f9223
SC
184sgi)
185 case "${target_cpu}" in
186 mips)
187 bfd_target=irix3 ;;
188 esac
189 ;;
4b39ad32 190none|nyu|sco)
69e87de2 191 case "${target_cpu}" in
bf61dec7 192 i386) bfd_target=i386-coff ;;
f48e2647 193 a29k) case "${target_os}" in
126334ae
JG
194 aout) bfd_target=a29k-aout ;;
195 coff) bfd_target=a29k-coff ;;
196 sym1) bfd_target=a29k-coff ;;
197 esac
198 ;;
4e6f9223 199 tahoe | vax) bfd_target=${target_cpu} ;;
69e87de2
RP
200 esac
201 ;;
56b10d6d
SC
202harris)
203 case "${target_cpu}" in
d33598ee 204 m88k) bfd_target=m88k-coff ;;
56b10d6d
SC
205 esac
206 ;;
207
01dd1b2b
SC
208motorola)
209 case "${target_cpu}" in
d33598ee 210 m88k) bfd_target=m88k-coff ;;
01dd1b2b
SC
211 esac
212 ;;
a71bfbcc
RP
213*)
214 case "${target_cpu}" in
215 tahoe | vax) bfd_target=${target_cpu} ;;
216 esac
217 ;;
4dfe09da
RP
218esac
219
d89b9f99 220if [ ! -f ${srcdir}/config/mt-${bfd_target} ] ; then
5b2765bf 221 if [ -n "${bfd_target}" ] ; then
d89b9f99 222 echo '***' No file ${srcdir}/config/mt-${bfd_target}
5b2765bf
JG
223 fi
224 echo '***' BFD does not support target ${target}
d33598ee 225 echo '***' Look in bfd/configure.in for supported targets
21c9f626
RP
226 exit 1
227fi
4b39ad32 228target_makefile_frag=config/mt-${bfd_target}
4dfe09da 229
5b2765bf
JG
230# We don't do any links based on the target system, just very minor makefile
231# config.
This page took 0.044521 seconds and 4 git commands to generate.