delete decls of segment_name, seg_name
[deliverable/binutils-gdb.git] / gas / configure.in
1 # This file is configure.in
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
22 # This file was written, and is maintained by K. Richard Pixley
23 # <rich@cygnus.com>.
24
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"
32 need_bfd=
33 configdirs=doc
34
35 # per-host:
36
37 gas_host=generic
38
39 case "${host}" in
40 a29k-*-* | rs6000-*-* | vax-*-*)
41 case "${host_os}" in
42 vms*) gas_host=vms ;;
43 bsd*) gas_host=bsd ;;
44 *) gas_host=${host_cpu} ;;
45 esac
46 ;;
47 mips-dec-ultrix)
48 gas_host=decstation
49 ;;
50 i[34]86-ibm-aix*)
51 gas_host=i386aix
52 ;;
53 i[34]86-*-isc*)
54 gas_host=sysv
55 ;;
56 m68k-sun-sunos*)
57 gas_host=sun3
58 ;;
59 i386-sun-sunos*)
60 gas_host=sun386
61 ;;
62 sparc-sun-sunos*)
63 gas_host=sun4
64 ;;
65 sparc-sun-solaris2)
66 gas_host=sysv
67 ;;
68 *-*-ansi | *-*-ultrix | *-*-hpux | *-*-sysv*)
69 gas_host=${host_os}
70 ;;
71 esac
72
73 # per-target:
74
75 # assign cpu type
76 emulation=generic
77
78 cpu_type=${target_cpu}
79
80 # check for architecture variants
81 case ${target_cpu} in
82 sparclite) cpu_type=sparc ;;
83 sparc64) cpu_type=sparc obj_format=aout ;;
84 m680[01234]0) cpu_type=m68k ;;
85 m683?2) cpu_type=m68k ;;
86 esac
87
88 gas_target=${cpu_type}
89
90 # assign object format
91 case ${target} in
92 a29k-amd-udi)
93 obj_format=coffbfd
94 need_bfd="./../bfd/libbfd.a"
95 gas_target=ebmon29k
96 ;;
97 a29k-amd-ebmon)
98 obj_format=coffbfd
99 need_bfd="./../bfd/libbfd.a"
100 gas_target=ebmon29k
101 ;;
102 a29k-amd-ebmonold)
103 obj_format=coff
104 need_bfd="./../bfd/libbfd.a"
105 gas_target=ebmon29k
106 ;;
107 i[34]86-ibm-aix*)
108 obj_format=coffbfd
109 need_bfd="./../bfd/libbfd.a"
110 gas_target=i386coff
111 emulation=i386aix
112 ;;
113 i[34]86-*-bsd*)
114 obj_format=aout
115 ;;
116 i[34]86-*-coff | i[34]86-*-sysv* | i[34]86-*-sco* | i[34]86-*-isc*)
117 obj_format=coffbfd
118 need_bfd="./../bfd/libbfd.a"
119 gas_target=i386coff
120 ;;
121 i[34]86-*-go32)
122 obj_format=aout
123 ;;
124 i960-wrs-vxworks)
125 obj_format=bout
126 ;;
127 i960-*-coff)
128 obj_format=coff
129 emulation=ic960
130 ;;
131 m68k-wrs-vxworks)
132 obj_format=aout
133 emulation=sun3
134 ;;
135 m68k-ericsson-[Oo][Ss][Ee])
136 obj_format=aout
137 emulation=sun3
138 ;;
139 m68k-*-coff)
140 obj_format=coffbfd
141 need_bfd="./../bfd/libbfd.a"
142 gas_target=m68kcoff
143 ;;
144 sparclite-fujitsu-none)
145 obj_format=aout
146 ;;
147 *-*-aout | *-*-scout | *-*-linux)
148 obj_format=aout
149 ;;
150 *-*-bout* | *-*-nindy*)
151 obj_format=bout
152 ;;
153 *-*-bsd* | *-*-sunos*)
154 obj_format=aout
155 emulation=sun3
156 ;;
157 *-*-generic)
158 obj_format=generic
159 ;;
160 *-*-xray | *-*-hms)
161 obj_format=coffbfd
162 need_bfd="./../bfd/libbfd.a"
163 ;;
164 *-*-sysv32)
165 obj_format=coff
166 emulation=sysv32
167 ;;
168 *-*-sim)
169 obj_format=coffbfd
170 need_bfd="./../bfd/libbfd.a"
171 ;;
172 *-*-coff* | *-sysv* | *-*-sco*)
173 obj_format=coff
174 case ${target_vendor} in
175 bull) emulation=dpx2 ;;
176 sun) emulation=sun3 ;;
177 esac
178 ;;
179 *-*-vxworks)
180 obj_format=aout
181 ;;
182 *-*-coff)
183 obj_format=coff
184 ;;
185 *-*-vms)
186 obj_format=vms
187 ;;
188 esac
189
190 # assign floating point type
191 case ${target_cpu} in
192 ns32k) atof=ns32k ;;
193 vax) atof=vax ;;
194 tahoe) atof=tahoe ;;
195 *) atof=ieee ;;
196 esac
197
198 # and target makefile frag
199
200 target_makefile_frag=config/${gas_target}.mt
201
202 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
203 config/tc-${cpu_type}.h config/te-${emulation}.h \
204 config/obj-${obj_format}.h config/obj-${obj_format}.c \
205 config/atof-${atof}.c"
206
207 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
208
209 # end of gas/configure.in
This page took 0.032726 seconds and 4 git commands to generate.