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