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 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.
40 *) gas_host=${host_cpu} ;;
45 ultrix) gas_host=decstation ;;
50 aix*) gas_host=i386aix ;;
53 host_makefile_frag=config/ho-i386v4
59 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
61 case "${host_vendor}" in
64 m68k) gas_host=sun3 ;;
65 i386) gas_host=sun386 ;;
66 sparc) gas_host=sun4 ;;
80 cpu_type=${target_cpu}
82 # assign object format
85 case "${target_cpu}" in
93 bout*) obj_format=bout ;;
94 nindy*) obj_format=bout ;;
97 case "${target_cpu}" in
98 m68k) environment=sun3 ;;
100 case "${target_vendor}" in
101 sequent) environment=${target_vendor} ;;
108 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
114 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
118 generic) obj_format=generic ;;
122 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
142 case ${target_vendor} in
143 bull) environment=dpx2 ;;
144 sco) environment=sco386 ;;
145 sun) environment=sun3 ;;
150 case ${target_cpu} in
151 i960) obj_format=bout ;;
152 *) obj_format=aout ;;
156 case ${target_vendor} in
157 aout) obj_format=aout ;;
158 bout) obj_format=bout ;;
161 case ${target_cpu} in
162 i960) environment=ic960 ;;
169 *) obj_format=aout ;;
175 # assign floating point type
176 case ${target_cpu} in
183 # and target makefile frag
185 target_makefile_frag=config/mt-${target_cpu}
187 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
188 config/tc-${cpu_type}.h config/te-${environment}.h \
189 config/obj-${obj_format}.h config/obj-${obj_format}.c \
190 config/atof-${atof}.c"
192 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
196 if [ ${target_alias} != ${host_alias} ] ; then
197 echo INTERNAL_CFLAGS=-DCROSS_COMPILE > Makefile.tem
198 cat Makefile >> Makefile.tem
199 mv Makefile.tem Makefile
204 # end of gas/configure.in