]>
Commit | Line | Data |
---|---|---|
6d5460ab | 1 | # This file is configure.in |
79a54a5b RP |
2 | # |
3 | # Copyright (C) 1987-1992 Free Software Foundation, Inc. | |
4 | # | |
5 | # This file is part of GAS, the GNU Assembler. | |
6 | # | |
7 | # GAS is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2, or (at your option) | |
10 | # any later version. | |
11 | # | |
12 | # GAS is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with GAS; see the file COPYING. If not, write to | |
19 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
20 | # | |
21 | ||
8c1b25e4 RP |
22 | # This file was written, and is maintained by K. Richard Pixley |
23 | # <[email protected]>. | |
24 | ||
fecd2382 RP |
25 | # This file is a shell script that supplies the information necessary |
26 | # to tailor a template configure script into the configure script | |
27 | # appropriate for this directory. For more information, check any | |
28 | # existing configure script. | |
29 | ||
30 | srctrigger=as.c | |
31 | srcname="gas" | |
8a24a37c | 32 | need_bfd= |
79a54a5b | 33 | configdirs=doc |
1058238c | 34 | |
353deb84 RP |
35 | # per-host: |
36 | ||
b678740d | 37 | gas_host=generic |
fecd2382 | 38 | |
b678740d RP |
39 | case "${host_cpu}" in |
40 | a29k | rs6000 | vax) gas_host=${host_cpu} ;; | |
41 | mips) | |
42 | case "${host_os}" in | |
03bb29bf | 43 | ultrix*) gas_host=decstation ;; |
b678740d | 44 | esac |
353deb84 | 45 | ;; |
6d5460ab RP |
46 | i386) |
47 | case "${host_os}" in | |
48 | aix*) gas_host=i386aix ;; | |
49 | esac | |
50 | ;; | |
74cc5508 | 51 | *) |
b678740d RP |
52 | case "${host_os}" in |
53 | ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;; | |
54 | *) | |
55 | case "${host_vendor}" in | |
56 | sun) | |
57 | case "${host_cpu}" in | |
58 | m68k) gas_host=sun3 ;; | |
59 | i386) gas_host=sun386 ;; | |
60 | sparc) gas_host=sun4 ;; | |
61 | esac | |
62 | ;; | |
63 | esac | |
64 | ;; | |
65 | esac | |
74cc5508 RP |
66 | ;; |
67 | esac | |
68 | ||
b678740d RP |
69 | # per-target: |
70 | ||
71 | # assign cpu type | |
72 | emulation=generic | |
73 | ||
74 | cpu_type=${target_cpu} | |
75 | ||
b53ccaac ILT |
76 | # check for architecture variants |
77 | case ${target_cpu} in | |
78 | sparclite) cpu_type=sparc ;; | |
79 | m680[01234]0) cpu_type=m68k ;; | |
80 | m683?2) cpu_type=m68k ;; | |
81 | esac | |
82 | ||
83 | gas_target=${cpu_type} | |
84 | ||
74cc5508 | 85 | # assign object format |
b678740d | 86 | case ${target_os} in |
6d5460ab RP |
87 | aix*) |
88 | case "${target_cpu}" in | |
89 | i386) obj_format=coff | |
b53ccaac | 90 | gas_target=i386aix |
8c1b25e4 | 91 | emulation=i386aix |
6d5460ab RP |
92 | ;; |
93 | esac | |
94 | ;; | |
95 | ||
3c9d74a8 | 96 | bout*) obj_format=bout ;; |
1058238c | 97 | nindy*) obj_format=bout ;; |
dfd53fe9 JW |
98 | bsd* | sunos*) |
99 | obj_format=aout | |
100 | emulation=sun3 ;; | |
8a24a37c | 101 | |
dfd53fe9 JW |
102 | udi) |
103 | obj_format=coffbfd | |
104 | need_bfd="./../bfd/libbfd.a" | |
b53ccaac | 105 | gas_target=ebmon29k |
dfd53fe9 | 106 | ;; |
ada269da | 107 | ebmon-old) |
605cd2a3 | 108 | obj_format=coff |
8c1b25e4 | 109 | need_bfd="./../bfd/libbfd.a" |
b53ccaac | 110 | gas_target=ebmon29k |
ada269da SC |
111 | ;; |
112 | ||
113 | ebmon) | |
8b228fe9 | 114 | obj_format=coffbfd |
8c1b25e4 | 115 | need_bfd="./../bfd/libbfd.a" |
b53ccaac | 116 | gas_target=ebmon29k |
605cd2a3 | 117 | ;; |
3c9d74a8 RP |
118 | |
119 | generic) obj_format=generic ;; | |
120 | ||
4ca727c4 | 121 | xray | hms) |
8b228fe9 | 122 | obj_format=coffbfd |
8c1b25e4 | 123 | need_bfd="./../bfd/libbfd.a" |
8a24a37c SC |
124 | ;; |
125 | ||
ace68c4e SC |
126 | sysv32) |
127 | obj_format=coff | |
128 | emulation=sysv32 | |
129 | ;; | |
3c9d74a8 | 130 | |
ab737e51 SC |
131 | sim) |
132 | obj_format=coffbfd | |
133 | need_bfd="./../bfd/libbfd.a" | |
134 | ;; | |
135 | ||
136 | ||
ace68c4e SC |
137 | coff* | sysv*) |
138 | obj_format=coff | |
139 | ||
b53ccaac ILT |
140 | case ${target_cpu} in |
141 | m68*) obj_format=coffbfd | |
142 | need_bfd="./../bfd/libbfd.a" | |
143 | gas_target=m68kcoff | |
144 | ;; | |
28c8c50b SC |
145 | i386) |
146 | obj_format=coffbfd | |
147 | need_bfd="./../bfd/libbfd.a" | |
148 | gas_target=i386coff | |
149 | ;; | |
150 | ||
b53ccaac ILT |
151 | esac |
152 | ||
ace68c4e SC |
153 | case ${target_vendor} in |
154 | bull) emulation=dpx2 ;; | |
155 | sco) emulation=sco386 ;; | |
156 | sun) emulation=sun3 ;; | |
157 | *) | |
158 | esac | |
159 | ;; | |
8b228fe9 RP |
160 | vxworks) |
161 | case ${target_cpu} in | |
162 | i960) obj_format=bout ;; | |
4b857710 | 163 | m68k|m680[01234]0|m683?2) |
8c1b25e4 RP |
164 | obj_format=aout |
165 | emulation=sun3 | |
166 | ;; | |
8b228fe9 RP |
167 | *) obj_format=aout ;; |
168 | esac | |
169 | ;; | |
afba2b22 | 170 | OSE | ose) |
03bb29bf KR |
171 | obj_format=aout |
172 | emulation=sun3 | |
173 | ;; | |
b53ccaac | 174 | aout | scout) |
4b857710 ILT |
175 | obj_format=aout |
176 | ;; | |
3c9d74a8 RP |
177 | *) |
178 | case ${target_vendor} in | |
179 | aout) obj_format=aout ;; | |
180 | bout) obj_format=bout ;; | |
ace68c4e SC |
181 | coff) |
182 | obj_format=coff | |
183 | case ${target_cpu} in | |
184 | i960) emulation=ic960 ;; | |
185 | esac | |
186 | ;; | |
3c9d74a8 RP |
187 | *) obj_format=aout ;; |
188 | esac | |
74cc5508 | 189 | ;; |
3c9d74a8 | 190 | |
fecd2382 RP |
191 | esac |
192 | ||
74cc5508 | 193 | # assign floating point type |
b678740d | 194 | case ${target_cpu} in |
79a54a5b RP |
195 | ns32k) atof=ns32k ;; |
196 | vax) atof=vax ;; | |
197 | *) atof=ieee ;; | |
fecd2382 RP |
198 | esac |
199 | ||
8a24a37c SC |
200 | # and target makefile frag |
201 | ||
b53ccaac | 202 | target_makefile_frag=config/${gas_target}.mt |
8a24a37c | 203 | |
b678740d | 204 | files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \ |
353deb84 | 205 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
206 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
207 | config/atof-${atof}.c" | |
208 | ||
fecd2382 | 209 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |
8b228fe9 RP |
210 | |
211 | # end of gas/configure.in |