1 # This file is a shell script that supplies the information necessary
2 # to tailor a template configure script into the configure script
3 # appropriate for this directory. For more information, check any
4 # existing configure script.
15 rs6000) my_host=rs6000
19 case "${host_vendor}" in
20 dec) my_host=decstation ;;
23 irix3) my_host=irix3 ;;
24 irix4) my_host=irix4 ;;
31 case "${host_vendor}" in
45 case "${host_vendor}" in
48 amigados) my_host=amigados ;;
49 sysv4*) my_host=amix ;;
54 hpux) my_host=hp9000 ;;
55 bsd) my_host=hp300bsd ;;
62 sysv*) my_host=apollov68 ;;
63 bsd*) my_host=apollo68 ;;
73 case "${host_vendor}" in
76 sysv4*) my_host=ncr3000 ;;
82 sysv4*) my_host=i386v4 ;;
83 sysv* | scosysv*) my_host=i386v ;;
84 mach*) my_host=i386mach ;;
85 msdos*) my_host=dose ;;
93 sunos64) my_host=sparc-ll ;;
94 sysv4) my_host=sysv4 ;;
95 solaris2) my_host=solaris2 ;;
96 sysv64) my_host=sysv4-ll ;;
113 ultrix*) my_host=vaxult ;;
118 case "${host_vendor}" in
121 hpux) my_host=hppahpux ;;
122 bsd) my_host=hppabsd ;;
129 # Set up to make a link between the host's include file and "sysdep.h".
130 files="hosts/${my_host}.h"
133 if [ ! -f ${srcdir}/${files} ] ; then
134 if [ -n "${my_host}" ] ; then
135 echo '***' No file ${srcdir}/${files}
137 echo '***' ${srcname} does not support host ${host}
142 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
143 host_makefile_frag=config/${my_host}.mh
150 rs6000-ibm-* ) bfd_target=rs6000 ;;
152 a29k-amd-ebmon ) bfd_target=a29k-coff ;;
153 a29k-amd-udi ) bfd_target=a29k-coff ;;
154 a29k-amd-* ) bfd_target=a29k-aout ;;
156 h8300-hitachi-* ) bfd_target=h8300-coff ;;
157 *-hitachi-* ) echo "bad hitachi cpu"; exit 1 ;;
159 i960-wrs-* ) bfd_target=i960-bout ;;
160 m68k-wrs-* ) bfd_target=m68k-aout ;;
161 m680[01234]0-wrs-* ) bfd_target=m68k-aout ;;
163 m68k-sun-* ) bfd_target=m68k-aout ;;
164 m680[01234]0-sun-* ) bfd_target=m68k-aout ;;
165 sparc-sun-sysv4 ) bfd_target=sparc-elf ;;
166 sparc-sun-solaris2* ) bfd_target=sparc-elf ;;
167 sparc-sun-* ) bfd_target=sparc-aout ;;
169 mips-dec-* ) bfd_target=decstation ;;
170 vax-dec-* ) bfd_target=vax ;;
172 m68k-hp-hpux ) bfd_target=hp9000 ;;
173 m680[01234]0-hp-hpux ) bfd_target=hp9000 ;;
174 m68k-hp-bsd ) bfd_target=hp300bsd ;;
175 m60[01234]0-hp-bsd ) bfd_target=hp300bsd ;;
177 mips-sgi-* ) bfd_target=irix3 ;;
178 mips-big-* ) bfd_target=irix3 ;;
180 *-tandem-* ) bfd_target=st2000 ;;
182 m68k-none-os68k ) bfd_target=m68k-aout ;;
183 m680[01234]0-none-os68k ) bfd_target=m68k-aout ;;
184 i386-sco-* ) bfd_target=i386-coff ;;
186 a29k-none-aout ) bfd_target=a29k-aout ;;
187 a29k-none-coff ) bfd_target=a29k-coff ;;
188 a29k-nyu-sym1 ) bfd_target=a29k-coff ;;
190 m88k-harris-* ) bfd_target=m88k-coff ;;
191 m88k-motorola-* ) bfd_target=m88k-coff ;;
193 vax-*-* ) bfd_target=vax ;;
194 tahoe-*-* ) bfd_target=tahoe ;;
196 hppa-hp-hpux ) bfd_target=hppahpux ;;
197 hppa-hp-bsd ) bfd_target=hppabsd ;;
199 *-*-aout ) bfd_target=${target_cpu}-aout ;;
200 *-*-bsd ) bfd_target=${target_cpu}-aout ;;
201 *-*-sysv4* ) bfd_target=${target_cpu}-elf ;;
202 *-*-solaris2* ) bfd_target=${target_cpu}-elf ;;
203 *-*-go32 ) bfd_target=${target_cpu}-aout ;;
204 *-*-sysv* ) bfd_target=${target_cpu}-coff ;;
205 *-*-scosysv* ) bfd_target=${target_cpu}-coff ;;
206 tahoe-*-none ) bfd_target=${target_cpu} ;;
207 vax-*-none ) bfd_target=${target_cpu} ;;
209 # These are obsolete and should be removed. FIXME. -- gnu
210 *-aout-* ) bfd_target=${target_cpu}-aout ;;
211 *-bout-* ) bfd_target=${target_cpu}-bout ;;
212 *-coff-* ) bfd_target=${target_cpu}-coff ;;
213 *-elf-* ) bfd_target=${target_cpu}-elf ;;
215 i386-none-* ) bfd_target=i386-coff ;;
216 *-sony-* ) bfd_target=news ;;
217 *-intel-* ) bfd_target=${target_cpu}-coff ;;
218 *-stratus-* ) bfd_target=${target_cpu}-elf ;;
219 *-cbm-* ) bfd_target=${target_cpu}-elf ;;
220 *-ncr-* ) bfd_target=${target_cpu}-elf ;;
224 if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
225 if [ -n "${bfd_target}" ] ; then
226 echo '***' No file ${srcdir}/config/${bfd_target}.mt
228 echo '***' BFD does not support target ${target}
229 echo '***' Look in bfd/configure.in for supported targets
232 target_makefile_frag=config/${bfd_target}.mt
234 # We don't do any links based on the target system, just very minor makefile