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