from hack's unfinished work
[deliverable/binutils-gdb.git] / gas / configure.in
CommitLineData
79a54a5b
RP
1# This file is configure.inj
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
fecd2382
RP
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
27srctrigger=as.c
28srcname="gas"
8a24a37c 29need_bfd=
79a54a5b 30configdirs=doc
1058238c 31
353deb84
RP
32# per-host:
33
b678740d 34gas_host=generic
fecd2382 35
b678740d
RP
36case "${host_cpu}" in
37a29k | rs6000 | vax) gas_host=${host_cpu} ;;
38mips)
39 case "${host_os}" in
40 ultrix) gas_host=decstation ;;
41 esac
353deb84 42 ;;
74cc5508 43*)
b678740d
RP
44 case "${host_os}" in
45 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
46 *)
47 case "${host_vendor}" in
48 sun)
49 case "${host_cpu}" in
50 m68k) gas_host=sun3 ;;
51 i386) gas_host=sun386 ;;
52 sparc) gas_host=sun4 ;;
53 esac
54 ;;
55 esac
56 ;;
57 esac
74cc5508
RP
58 ;;
59esac
60
b678740d
RP
61# per-target:
62
63# assign cpu type
64emulation=generic
65
66cpu_type=${target_cpu}
67
74cc5508 68# assign object format
b678740d 69case ${target_os} in
3c9d74a8 70bout*) obj_format=bout ;;
1058238c 71nindy*) obj_format=bout ;;
3c9d74a8 72bsd* | sunos*) obj_format=aout ;;
8a24a37c 73
ada269da 74ebmon-old)
605cd2a3
SC
75 obj_format=coff
76 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
ada269da
SC
77 target_cpu=ebmon29k
78 ;;
79
80ebmon)
8b228fe9 81 obj_format=coffbfd
ada269da 82 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
605cd2a3
SC
83 target_cpu=ebmon29k
84 ;;
3c9d74a8
RP
85
86generic) obj_format=generic ;;
87
8b228fe9
RP
88hms)
89 obj_format=coffbfd
8a24a37c
SC
90 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
91 ;;
92
ace68c4e
SC
93sysv32)
94 obj_format=coff
95 emulation=sysv32
96 ;;
3c9d74a8 97
ace68c4e
SC
98coff* | sysv*)
99 obj_format=coff
100
101 case ${target_vendor} in
102 bull) emulation=dpx2 ;;
103 sco) emulation=sco386 ;;
104 sun) emulation=sun3 ;;
105 *)
106 esac
107 ;;
8b228fe9
RP
108vxworks)
109 case ${target_cpu} in
110 i960) obj_format=bout ;;
111 *) obj_format=aout ;;
112 esac
113 ;;
3c9d74a8
RP
114*)
115 case ${target_vendor} in
116 aout) obj_format=aout ;;
117 bout) obj_format=bout ;;
ace68c4e
SC
118 coff)
119 obj_format=coff
120 case ${target_cpu} in
121 i960) emulation=ic960 ;;
122 esac
123 ;;
3c9d74a8
RP
124 *) obj_format=aout ;;
125 esac
74cc5508 126 ;;
3c9d74a8 127
fecd2382
RP
128esac
129
74cc5508 130# assign floating point type
b678740d 131case ${target_cpu} in
79a54a5b
RP
132ns32k) atof=ns32k ;;
133vax) atof=vax ;;
134*) atof=ieee ;;
fecd2382
RP
135esac
136
8a24a37c
SC
137# and target makefile frag
138
3c9d74a8 139target_makefile_frag=config/mt-${target_cpu}
8a24a37c 140
b678740d 141files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 142 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
143 config/obj-${obj_format}.h config/obj-${obj_format}.c \
144 config/atof-${atof}.c"
145
fecd2382 146links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
147
148# end of gas/configure.in
This page took 0.047253 seconds and 4 git commands to generate.