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