1 # This file is configure.in
3 # Copyright (C) 1987-1992 Free Software Foundation, Inc.
5 # This file is part of GAS, the GNU Assembler.
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)
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.
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. */
22 # This file was written, and is maintained by K. Richard Pixley
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.
40 a29k | rs6000 | vax) gas_host=${host_cpu} ;;
43 ultrix*) gas_host=decstation ;;
48 aix*) gas_host=i386aix ;;
53 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
55 case "${host_vendor}" in
58 m68k) gas_host=sun3 ;;
59 i386) gas_host=sun386 ;;
60 sparc) gas_host=sun4 ;;
74 cpu_type=${target_cpu}
76 # check for architecture variants
78 sparclite) cpu_type=sparc ;;
79 m680[01234]0) cpu_type=m68k ;;
80 m683?2) cpu_type=m68k ;;
83 gas_target=${cpu_type}
85 # assign object format
88 case "${target_cpu}" in
96 bout*) obj_format=bout ;;
97 nindy*) obj_format=bout ;;
104 need_bfd="./../bfd/libbfd.a"
109 need_bfd="./../bfd/libbfd.a"
115 need_bfd="./../bfd/libbfd.a"
119 generic) obj_format=generic ;;
123 need_bfd="./../bfd/libbfd.a"
133 need_bfd="./../bfd/libbfd.a"
140 case ${target_cpu} in
141 m68*) obj_format=coffbfd
142 need_bfd="./../bfd/libbfd.a"
147 case ${target_vendor} in
148 bull) emulation=dpx2 ;;
149 sco) emulation=sco386 ;;
150 sun) emulation=sun3 ;;
155 case ${target_cpu} in
156 i960) obj_format=bout ;;
157 m68k|m680[01234]0|m683?2)
161 *) obj_format=aout ;;
172 case ${target_vendor} in
173 aout) obj_format=aout ;;
174 bout) obj_format=bout ;;
177 case ${target_cpu} in
178 i960) emulation=ic960 ;;
181 *) obj_format=aout ;;
187 # assign floating point type
188 case ${target_cpu} in
194 # and target makefile frag
196 target_makefile_frag=config/${gas_target}.mt
198 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
199 config/tc-${cpu_type}.h config/te-${emulation}.h \
200 config/obj-${obj_format}.h config/obj-${obj_format}.c \
201 config/atof-${atof}.c"
203 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
205 # end of gas/configure.in