]>
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 | ||
74cc5508 | 76 | # assign object format |
b678740d | 77 | case ${target_os} in |
6d5460ab RP |
78 | aix*) |
79 | case "${target_cpu}" in | |
80 | i386) obj_format=coff | |
81 | target_cpu=i386aix | |
8c1b25e4 | 82 | emulation=i386aix |
6d5460ab RP |
83 | ;; |
84 | esac | |
85 | ;; | |
86 | ||
3c9d74a8 | 87 | bout*) obj_format=bout ;; |
1058238c | 88 | nindy*) obj_format=bout ;; |
dfd53fe9 JW |
89 | bsd* | sunos*) |
90 | obj_format=aout | |
91 | emulation=sun3 ;; | |
8a24a37c | 92 | |
dfd53fe9 JW |
93 | udi) |
94 | obj_format=coffbfd | |
95 | need_bfd="./../bfd/libbfd.a" | |
96 | target_cpu=ebmon29k | |
97 | ;; | |
ada269da | 98 | ebmon-old) |
605cd2a3 | 99 | obj_format=coff |
8c1b25e4 | 100 | need_bfd="./../bfd/libbfd.a" |
ada269da SC |
101 | target_cpu=ebmon29k |
102 | ;; | |
103 | ||
104 | ebmon) | |
8b228fe9 | 105 | obj_format=coffbfd |
8c1b25e4 | 106 | need_bfd="./../bfd/libbfd.a" |
605cd2a3 SC |
107 | target_cpu=ebmon29k |
108 | ;; | |
3c9d74a8 RP |
109 | |
110 | generic) obj_format=generic ;; | |
111 | ||
4ca727c4 SC |
112 | |
113 | xray | hms) | |
8b228fe9 | 114 | obj_format=coffbfd |
8c1b25e4 | 115 | need_bfd="./../bfd/libbfd.a" |
8a24a37c SC |
116 | ;; |
117 | ||
ace68c4e SC |
118 | sysv32) |
119 | obj_format=coff | |
120 | emulation=sysv32 | |
121 | ;; | |
3c9d74a8 | 122 | |
ace68c4e SC |
123 | coff* | sysv*) |
124 | obj_format=coff | |
125 | ||
126 | case ${target_vendor} in | |
127 | bull) emulation=dpx2 ;; | |
128 | sco) emulation=sco386 ;; | |
129 | sun) emulation=sun3 ;; | |
130 | *) | |
131 | esac | |
132 | ;; | |
8b228fe9 RP |
133 | vxworks) |
134 | case ${target_cpu} in | |
135 | i960) obj_format=bout ;; | |
03bb29bf | 136 | m68k|m680[01234]0) |
8c1b25e4 RP |
137 | obj_format=aout |
138 | emulation=sun3 | |
139 | ;; | |
8b228fe9 RP |
140 | *) obj_format=aout ;; |
141 | esac | |
142 | ;; | |
03bb29bf KR |
143 | OSE) |
144 | obj_format=aout | |
145 | emulation=sun3 | |
146 | ;; | |
3c9d74a8 RP |
147 | *) |
148 | case ${target_vendor} in | |
149 | aout) obj_format=aout ;; | |
150 | bout) obj_format=bout ;; | |
ace68c4e SC |
151 | coff) |
152 | obj_format=coff | |
153 | case ${target_cpu} in | |
154 | i960) emulation=ic960 ;; | |
155 | esac | |
156 | ;; | |
3c9d74a8 RP |
157 | *) obj_format=aout ;; |
158 | esac | |
74cc5508 | 159 | ;; |
3c9d74a8 | 160 | |
fecd2382 RP |
161 | esac |
162 | ||
74cc5508 | 163 | # assign floating point type |
b678740d | 164 | case ${target_cpu} in |
79a54a5b RP |
165 | ns32k) atof=ns32k ;; |
166 | vax) atof=vax ;; | |
167 | *) atof=ieee ;; | |
fecd2382 RP |
168 | esac |
169 | ||
dfd53fe9 JW |
170 | # check for architecture variants |
171 | case ${target_cpu} in | |
172 | sparclite) cpu_type=sparc ;; | |
03bb29bf | 173 | m680[01234]0) cpu_type=m68k ;; |
dfd53fe9 JW |
174 | esac |
175 | ||
8a24a37c SC |
176 | # and target makefile frag |
177 | ||
4ca727c4 | 178 | target_makefile_frag=config/${target_cpu}.mt |
8a24a37c | 179 | |
b678740d | 180 | files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \ |
353deb84 | 181 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
182 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
183 | config/atof-${atof}.c" | |
184 | ||
fecd2382 | 185 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |
8b228fe9 RP |
186 | |
187 | # end of gas/configure.in |