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