]>
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 | |
7 | srcname="bfd" | |
21c9f626 RP |
8 | |
9 | # per-host: | |
10 | ||
4dfe09da RP |
11 | if [ "${host_os}" = "posix" ] ; then |
12 | bfd_host=posix | |
13 | else | |
14 | case "${host_cpu}" in | |
15 | rs6000) bfd_host=aix ;; | |
16 | mips) | |
17 | case "${host_vendor}" in | |
18 | dec) bfd_host=dec3100 ;; | |
4e6f9223 | 19 | sgi) bfd_host=irix3 ;; |
4dfe09da RP |
20 | esac |
21 | ;; | |
22 | m88k) | |
23 | case "${host_vendor}" in | |
24 | *) | |
25 | case "${host_os}" in | |
26 | dgux) bfd_host=dgux ;; | |
27 | esac | |
28 | ;; | |
29 | esac | |
30 | ;; | |
4dfe09da RP |
31 | m68k) |
32 | case "${host_vendor}" in | |
a71bfbcc RP |
33 | hp) |
34 | case "${host_os}" in | |
35 | hpux) bfd_host=hp9000 ;; | |
36 | bsd) bfd_host=hp300bsd ;; | |
37 | esac | |
38 | ;; | |
4dfe09da RP |
39 | sony) bfd_host=news ;; |
40 | sun) bfd_host=sun3 ;; | |
41 | esac | |
42 | ;; | |
43 | ||
44 | i386) | |
45 | case "${host_vendor}" in | |
46 | *) | |
47 | case "${host_os}" in | |
48 | sysv) bfd_host=i386v ;; | |
49 | esac | |
50 | ;; | |
51 | esac | |
52 | ;; | |
53 | ||
54 | sparc) | |
55 | case "${host_vendor}" in | |
56 | sun) bfd_host=sun4 ;; | |
57 | esac | |
58 | ;; | |
59 | ||
126334ae JG |
60 | rtpc) bfd_host=rtbsd |
61 | ;; | |
62 | ||
63 | a29k) bfd_host=ultra3 | |
64 | ;; | |
65 | ||
2ccc2383 | 66 | tahoe) |
126334ae JG |
67 | bfd_host=${host_cpu} |
68 | ;; | |
2ccc2383 JG |
69 | vax) |
70 | case "${host_os}" in | |
71 | ultrix) bfd_host=vaxult ;; | |
72 | *) bfd_host=vax ;; | |
73 | esac | |
74 | ;; | |
4dfe09da RP |
75 | esac |
76 | fi | |
77 | ||
c6705697 SC |
78 | if [ ! -f config/h-${bfd_host} ] ; then |
79 | echo '***' BFD does not support host ${host}: no file config/h-${bfd_host} | |
21c9f626 RP |
80 | exit 1 |
81 | fi | |
82 | ||
c6705697 | 83 | host_makefile_frag=config/h-${bfd_host} |
4dfe09da | 84 | |
21c9f626 RP |
85 | # per-target: |
86 | ||
a71bfbcc RP |
87 | case "${target_vendor}" in |
88 | aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;; | |
89 | sony) bfd_target=news ;; | |
90 | intel) bfd_target=${target_cpu}-coff ;; | |
4e6f9223 SC |
91 | |
92 | hitachi) | |
93 | case "${target_cpu}" in | |
94 | h8300) bfd_target=h8300-ieee ;; | |
95 | *) echo "bad hitachi cpu" ;; | |
96 | esac | |
97 | ;; | |
98 | ||
99 | ||
a71bfbcc | 100 | wrs) |
4dfe09da | 101 | case "${target_cpu}" in |
a71bfbcc RP |
102 | i960) bfd_target=i960-bout ;; |
103 | m68k) bfd_target=m68k-aout ;; | |
4dfe09da RP |
104 | esac |
105 | ;; | |
a71bfbcc | 106 | sun) |
4dfe09da | 107 | case "${target_cpu}" in |
a71bfbcc RP |
108 | m68k) bfd_target=m68k-aout ;; |
109 | sparc) bfd_target=sparc-aout ;; | |
110 | esac | |
111 | ;; | |
112 | dec) | |
113 | case "${target_cpu}" in | |
114 | mips) bfd_target=dec3100 ;; | |
2ccc2383 | 115 | vax) bfd_target=vax ;; |
a71bfbcc RP |
116 | esac |
117 | ;; | |
118 | hp) | |
119 | case "${target_cpu}" in | |
120 | m68k) | |
121 | case "${target_os}" in | |
122 | hpux) bfd_target=hp9000 ;; | |
123 | bsd) bfd_target=hp300bsd ;; | |
4dfe09da RP |
124 | esac |
125 | ;; | |
126 | esac | |
127 | ;; | |
4e6f9223 SC |
128 | sgi) |
129 | case "${target_cpu}" in | |
130 | mips) | |
131 | bfd_target=irix3 ;; | |
132 | esac | |
133 | ;; | |
134 | none|nyu) | |
69e87de2 RP |
135 | case "${target_cpu}" in |
136 | i386) bfd_target=i386-coff ;; | |
f48e2647 | 137 | a29k) case "${target_os}" in |
126334ae JG |
138 | aout) bfd_target=a29k-aout ;; |
139 | coff) bfd_target=a29k-coff ;; | |
140 | sym1) bfd_target=a29k-coff ;; | |
141 | esac | |
142 | ;; | |
4e6f9223 | 143 | tahoe | vax) bfd_target=${target_cpu} ;; |
69e87de2 RP |
144 | esac |
145 | ;; | |
a71bfbcc RP |
146 | *) |
147 | case "${target_cpu}" in | |
148 | tahoe | vax) bfd_target=${target_cpu} ;; | |
149 | esac | |
150 | ;; | |
4dfe09da RP |
151 | esac |
152 | ||
c6705697 SC |
153 | if [ ! -f config/t-${bfd_target} ] ; then |
154 | echo '***' BFD does not support target ${target}: no file config/t-${bfd_target} | |
21c9f626 RP |
155 | exit 1 |
156 | fi | |
157 | ||
c6705697 | 158 | target_makefile_frag=config/t-${bfd_target} |
4dfe09da | 159 | |
21c9f626 RP |
160 | files= |
161 | links= |