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