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.
37 a29k | rs6000 | vax) gas_host=${host_cpu} ;;
40 ultrix) gas_host=decstation ;;
45 aix*) gas_host=i386aix ;;
50 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
52 case "${host_vendor}" in
55 m68k) gas_host=sun3 ;;
56 i386) gas_host=sun386 ;;
57 sparc) gas_host=sun4 ;;
71 cpu_type=${target_cpu}
73 # assign object format
76 case "${target_cpu}" in
83 bout*) obj_format=bout ;;
84 nindy*) obj_format=bout ;;
85 bsd* | sunos*) obj_format=aout ;;
89 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
95 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
99 generic) obj_format=generic ;;
103 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
114 case ${target_vendor} in
115 bull) emulation=dpx2 ;;
116 sco) emulation=sco386 ;;
117 sun) emulation=sun3 ;;
122 case ${target_cpu} in
123 i960) obj_format=bout ;;
124 *) obj_format=aout ;;
128 case ${target_vendor} in
129 aout) obj_format=aout ;;
130 bout) obj_format=bout ;;
133 case ${target_cpu} in
134 i960) emulation=ic960 ;;
137 *) obj_format=aout ;;
143 # assign floating point type
144 case ${target_cpu} in
150 # and target makefile frag
152 target_makefile_frag=config/mt-${target_cpu}
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"
159 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
161 # end of gas/configure.in