]> Git Repo - binutils.git/blame - gas/configure.in
* tc-m68k.h, te-sun3.h: moved LOCAL_LABELS_FB definition from
[binutils.git] / gas / configure.in
CommitLineData
6d5460ab 1# This file is configure.in
79a54a5b
RP
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 ;;
6d5460ab
RP
43i386)
44 case "${host_os}" in
45 aix*) gas_host=i386aix ;;
46 esac
47 ;;
74cc5508 48*)
b678740d
RP
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
74cc5508
RP
63 ;;
64esac
65
b678740d
RP
66# per-target:
67
68# assign cpu type
69emulation=generic
70
71cpu_type=${target_cpu}
72
74cc5508 73# assign object format
b678740d 74case ${target_os} in
6d5460ab
RP
75aix*)
76 case "${target_cpu}" in
77 i386) obj_format=coff
78 target_cpu=i386aix
79 ;;
80 esac
81 ;;
82
3c9d74a8 83bout*) obj_format=bout ;;
1058238c 84nindy*) obj_format=bout ;;
3c9d74a8 85bsd* | sunos*) obj_format=aout ;;
8a24a37c 86
ada269da 87ebmon-old)
605cd2a3
SC
88 obj_format=coff
89 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
ada269da
SC
90 target_cpu=ebmon29k
91 ;;
92
93ebmon)
8b228fe9 94 obj_format=coffbfd
ada269da 95 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
605cd2a3
SC
96 target_cpu=ebmon29k
97 ;;
3c9d74a8
RP
98
99generic) obj_format=generic ;;
100
8b228fe9
RP
101hms)
102 obj_format=coffbfd
8a24a37c
SC
103 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
104 ;;
105
ace68c4e
SC
106sysv32)
107 obj_format=coff
108 emulation=sysv32
109 ;;
3c9d74a8 110
ace68c4e
SC
111coff* | 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 ;;
8b228fe9
RP
121vxworks)
122 case ${target_cpu} in
123 i960) obj_format=bout ;;
124 *) obj_format=aout ;;
125 esac
126 ;;
3c9d74a8
RP
127*)
128 case ${target_vendor} in
129 aout) obj_format=aout ;;
130 bout) obj_format=bout ;;
ace68c4e
SC
131 coff)
132 obj_format=coff
133 case ${target_cpu} in
134 i960) emulation=ic960 ;;
135 esac
136 ;;
3c9d74a8
RP
137 *) obj_format=aout ;;
138 esac
74cc5508 139 ;;
3c9d74a8 140
fecd2382
RP
141esac
142
74cc5508 143# assign floating point type
b678740d 144case ${target_cpu} in
79a54a5b
RP
145ns32k) atof=ns32k ;;
146vax) atof=vax ;;
147*) atof=ieee ;;
fecd2382
RP
148esac
149
8a24a37c
SC
150# and target makefile frag
151
3c9d74a8 152target_makefile_frag=config/mt-${target_cpu}
8a24a37c 153
b678740d 154files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 155 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
156 config/obj-${obj_format}.h config/obj-${obj_format}.c \
157 config/atof-${atof}.c"
158
fecd2382 159links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
160
161# end of gas/configure.in
This page took 0.128023 seconds and 4 git commands to generate.