* config/tc-m68k.c (init_table): Now const. Always include 68851
[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_cpu}" in
40 a29k | rs6000 | vax) gas_host=${host_cpu} ;;
41 mips)
42 case "${host_os}" in
43 ultrix*) gas_host=decstation ;;
44 esac
45 ;;
46 i386)
47 case "${host_os}" in
48 aix*) gas_host=i386aix ;;
49 esac
50 ;;
51 *)
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
66 ;;
67 esac
68
69 # per-target:
70
71 # assign cpu type
72 emulation=generic
73
74 cpu_type=${target_cpu}
75
76 # assign object format
77 case ${target_os} in
78 aix*)
79 case "${target_cpu}" in
80 i386) obj_format=coff
81 target_cpu=i386aix
82 emulation=i386aix
83 ;;
84 esac
85 ;;
86
87 bout*) obj_format=bout ;;
88 nindy*) obj_format=bout ;;
89 bsd* | sunos*)
90 obj_format=aout
91 emulation=sun3 ;;
92
93 udi)
94 obj_format=coffbfd
95 need_bfd="./../bfd/libbfd.a"
96 target_cpu=ebmon29k
97 ;;
98 ebmon-old)
99 obj_format=coff
100 need_bfd="./../bfd/libbfd.a"
101 target_cpu=ebmon29k
102 ;;
103
104 ebmon)
105 obj_format=coffbfd
106 need_bfd="./../bfd/libbfd.a"
107 target_cpu=ebmon29k
108 ;;
109
110 generic) obj_format=generic ;;
111
112
113 xray | hms)
114 obj_format=coffbfd
115 need_bfd="./../bfd/libbfd.a"
116 ;;
117
118 sysv32)
119 obj_format=coff
120 emulation=sysv32
121 ;;
122
123 sim)
124 obj_format=coffbfd
125 need_bfd="./../bfd/libbfd.a"
126 ;;
127
128
129 coff* | sysv*)
130 obj_format=coff
131
132 case ${target_vendor} in
133 bull) emulation=dpx2 ;;
134 sco) emulation=sco386 ;;
135 sun) emulation=sun3 ;;
136 *)
137 esac
138 ;;
139 vxworks)
140 case ${target_cpu} in
141 i960) obj_format=bout ;;
142 m68k|m680[01234]0|m683?2)
143 obj_format=aout
144 emulation=sun3
145 ;;
146 *) obj_format=aout ;;
147 esac
148 ;;
149 OSE | ose)
150 obj_format=aout
151 emulation=sun3
152 ;;
153 aout)
154 obj_format=aout
155 ;;
156 *)
157 case ${target_vendor} in
158 aout) obj_format=aout ;;
159 bout) obj_format=bout ;;
160 coff)
161 obj_format=coff
162 case ${target_cpu} in
163 i960) emulation=ic960 ;;
164 esac
165 ;;
166 *) obj_format=aout ;;
167 esac
168 ;;
169
170 esac
171
172 # assign floating point type
173 case ${target_cpu} in
174 ns32k) atof=ns32k ;;
175 vax) atof=vax ;;
176 *) atof=ieee ;;
177 esac
178
179 # check for architecture variants
180 case ${target_cpu} in
181 sparclite) cpu_type=sparc ;;
182 m680[01234]0) cpu_type=m68k ;;
183 m683?2) cpu_type=m68k ;;
184 esac
185
186 # and target makefile frag
187
188 target_makefile_frag=config/${target_cpu}.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