changes from Minh Tran-Le <TRANLE@INTELLICORP.COM> to support i386
[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 is a shell script that supplies the information necessary
23 # to tailor a template configure script into the configure script
24 # appropriate for this directory. For more information, check any
25 # existing configure script.
26
27 srctrigger=as.c
28 srcname="gas"
29 need_bfd=
30 configdirs=doc
31
32 # per-host:
33
34 gas_host=generic
35
36 case "${host_cpu}" in
37 a29k | rs6000 | vax) gas_host=${host_cpu} ;;
38 mips)
39 case "${host_os}" in
40 ultrix) gas_host=decstation ;;
41 esac
42 ;;
43 i386)
44 case "${host_os}" in
45 aix*) gas_host=i386aix ;;
46 esac
47 ;;
48 *)
49 case "${host_os}" in
50 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
51 *)
52 case "${host_vendor}" in
53 sun)
54 case "${host_cpu}" in
55 m68k) gas_host=sun3 ;;
56 i386) gas_host=sun386 ;;
57 sparc) gas_host=sun4 ;;
58 esac
59 ;;
60 esac
61 ;;
62 esac
63 ;;
64 esac
65
66 # per-target:
67
68 # assign cpu type
69 emulation=generic
70
71 cpu_type=${target_cpu}
72
73 # assign object format
74 case ${target_os} in
75 aix*)
76 case "${target_cpu}" in
77 i386) obj_format=coff
78 target_cpu=i386aix
79 ;;
80 esac
81 ;;
82
83 bout*) obj_format=bout ;;
84 nindy*) obj_format=bout ;;
85 bsd* | sunos*) obj_format=aout ;;
86
87 ebmon-old)
88 obj_format=coff
89 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
90 target_cpu=ebmon29k
91 ;;
92
93 ebmon)
94 obj_format=coffbfd
95 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
96 target_cpu=ebmon29k
97 ;;
98
99 generic) obj_format=generic ;;
100
101 hms)
102 obj_format=coffbfd
103 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
104 ;;
105
106 sysv32)
107 obj_format=coff
108 emulation=sysv32
109 ;;
110
111 coff* | sysv*)
112 obj_format=coff
113
114 case ${target_vendor} in
115 bull) emulation=dpx2 ;;
116 sco) emulation=sco386 ;;
117 sun) emulation=sun3 ;;
118 *)
119 esac
120 ;;
121 vxworks)
122 case ${target_cpu} in
123 i960) obj_format=bout ;;
124 *) obj_format=aout ;;
125 esac
126 ;;
127 *)
128 case ${target_vendor} in
129 aout) obj_format=aout ;;
130 bout) obj_format=bout ;;
131 coff)
132 obj_format=coff
133 case ${target_cpu} in
134 i960) emulation=ic960 ;;
135 esac
136 ;;
137 *) obj_format=aout ;;
138 esac
139 ;;
140
141 esac
142
143 # assign floating point type
144 case ${target_cpu} in
145 ns32k) atof=ns32k ;;
146 vax) atof=vax ;;
147 *) atof=ieee ;;
148 esac
149
150 # and target makefile frag
151
152 target_makefile_frag=config/mt-${target_cpu}
153
154 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
155 config/tc-${cpu_type}.h config/te-${emulation}.h \
156 config/obj-${obj_format}.h config/obj-${obj_format}.c \
157 config/atof-${atof}.c"
158
159 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
160
161 # end of gas/configure.in