]> Git Repo - binutils.git/blame - bfd/configure.in
* configure.host: New file, contains mapping of host configs
[binutils.git] / bfd / configure.in
CommitLineData
21c9f626
RP
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.
5
3b4f1a5d 6configdirs="doc"
21c9f626 7srctrigger=libbfd.c
5b2765bf 8srcname="BFD"
d89b9f99 9target_dependent=true
21c9f626
RP
10
11# per-host:
12
5a5fa368 13. ${srcdir}/configure.host
4dfe09da 14
5b2765bf 15# Set up to make a link between the host's include file and "sysdep.h".
5868184b 16files="hosts/${my_host}.h"
5b2765bf
JG
17links="sysdep.h"
18
d89b9f99 19if [ ! -f ${srcdir}/${files} ] ; then
5b2765bf 20 if [ -n "${my_host}" ] ; then
eafc6d85 21 echo '***' No file ${srcdir}/${files} 1>&2
5b2765bf 22 fi
eafc6d85 23 echo '***' ${srcname} does not support host ${host} 1>&2
21c9f626
RP
24 exit 1
25fi
26
5b2765bf 27host_makefile_frag=
5868184b
FF
28if [ -f ${srcdir}/config/${my_host}.mh ] ; then
29 host_makefile_frag=config/${my_host}.mh
5b2765bf 30fi
4dfe09da 31
21c9f626
RP
32# per-target:
33
218ce930
JG
34# WHEN ADDING ENTRIES TO THIS MATRIX:
35# Make sure that the left side always has two dashes. Otherwise you
36# can get spurious matches. Even for unambiguous cases, do this as a
37# convention, else the table becomes a real mess to understand and maintain.
38
1e730c4b 39case "${target}" in
439a4936
JG
40 a29k-*-ebmon) bfd_target=a29k-coff ;;
41 a29k-*-udi) bfd_target=a29k-coff ;;
42 a29k-*-aout) bfd_target=a29k-aout ;;
43 a29k-*-coff) bfd_target=a29k-coff ;;
44 a29k-*-sym1) bfd_target=a29k-coff ;;
45 h8300-*-*) bfd_target=h8300-coff ;;
46 hppa*-*-bsd) bfd_target=hppabsd ;;
47 hppa*-*-hpux) bfd_target=hppahpux ;;
48 i[34]86-*-sysv4*) bfd_target=i386-elf ;;
49 i[34]86-*-sysv*) bfd_target=i386-coff ;;
50 i[34]86-*-sco*) bfd_target=i386-coff ;;
5a5fa368 51 i[34]86-*-bsd*) bfd_target=i386-bsd ;;
439a4936
JG
52 i[34]86-none-*) bfd_target=i386-coff ;;
53 i960-*-vxworks) bfd_target=i960-bout ;;
54 m68*-hp-bsd) bfd_target=hp300bsd ;;
55 m68*-*-aout) bfd_target=m68k-aout ;;
56 m68*-*-coff) bfd_target=m68k-coff ;;
57 m68*-*-hpux) bfd_target=hp300 ;;
58 m68*-*-os68k) bfd_target=m68k-aout ;;
59 m68*-*-sunos*) bfd_target=m68k-aout ;;
60 m68*-*-vxworks*) bfd_target=m68k-aout ;;
61 m68*-ericsson-*) bfd_target=m68k-aout ;;
62 m68*-netx-*) bfd_target=m68k-aout ;;
63 m88k-*-*) bfd_target=m88k-coff ;;
64 mips-big-*) bfd_target=irix3 ;;
65 mips-dec-*) bfd_target=decstation ;;
66 mips-sgi-*) bfd_target=irix3 ;;
67 rs6000-*-*) bfd_target=rs6000 ;;
68 sparc-*-solaris2*) bfd_target=sparc-elf ;;
69 sparc-*-sysv4*) bfd_target=sparc-elf ;;
70 sparc-*-*) bfd_target=sparc-aout ;;
71 sparclite-*-*) bfd_target=sparc-aout ;;
72 tahoe-*-*) bfd_target=tahoe ;;
73 vax-*-*) bfd_target=vax ;;
74 we32k-*-*) bfd_target=we32k ;;
75 z8k*-*-*) bfd_target=z8k-coff ;;
76
77 *-*-aout) bfd_target=${target_cpu}-aout ;;
78 *-*-bsd) bfd_target=${target_cpu}-aout ;;
79 *-*-sysv4*) bfd_target=${target_cpu}-elf ;;
80 *-*-solaris2*) bfd_target=${target_cpu}-elf ;;
81 *-*-go32) bfd_target=${target_cpu}-aout ;;
82 *-*-linux*) bfd_target=${target_cpu}-linux ;;
83 *-*-sysv*) bfd_target=${target_cpu}-coff ;;
84 *-*-scosysv*) bfd_target=${target_cpu}-coff ;;
85
86 *-adobe-*) bfd_target=adobe ;;
87 *-sony-*) bfd_target=news ;;
88 *-intel-*) bfd_target=${target_cpu}-coff ;;
89 *-stratus-*) bfd_target=${target_cpu}-elf ;;
90 *-cbm-*) bfd_target=${target_cpu}-elf ;;
91 *-ncr-*) bfd_target=${target_cpu}-elf ;;
92 *-tandem-*) bfd_target=st2000 ;;
4dfe09da
RP
93esac
94
5868184b 95if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
5b2765bf 96 if [ -n "${bfd_target}" ] ; then
eafc6d85 97 echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2
5b2765bf 98 fi
eafc6d85
FF
99 echo '***' BFD does not support target ${target} 1>&2
100 echo '***' Look in bfd/configure.in for supported targets 1>&2
21c9f626
RP
101 exit 1
102fi
5868184b 103target_makefile_frag=config/${bfd_target}.mt
4dfe09da 104
5b2765bf
JG
105# We don't do any links based on the target system, just very minor makefile
106# config.
This page took 0.129308 seconds and 4 git commands to generate.