* configure.in: Undo some brain damage in the host section.
[deliverable/binutils-gdb.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
fbee3571 13case "${host}" in
d047d16a
JG
14# WHEN ADDING ENTRIES TO THIS MATRIX:
15# Make sure that the left side always has two dashes. Otherwise you
16# can get spurious matches. Even for unambiguous cases, do this as a
17# convention, else the table becomes a real mess to understand and maintain.
18#
19# Note that these entries cannot be fully alphabetical. Don't try.
20# The order of matching is critical when multiple lines could match.
21
22a29k-*-*) my_host=ultra3 ;;
23
24hppa*-hp-hpux) my_host=hppahpux ;;
25hppa*-hp-bsd) my_host=hppabsd ;;
26
27i[34]86-ncr*-sysv4*) my_host=ncr3000 ;;
28i[34]86-*-go32) my_host=go32 ;;
29i[34]86-*-sysv4*) my_host=i386v4 ;;
30i[34]86-*-sysv*) my_host=i386v ;;
31i[34]86-*-solaris*) my_host=i386v ;;
32i[34]86-*-sco*) my_host=i386v ;;
33i[34]86-*-mach*) my_host=i386mach ;;
34i[34]86-*-msdos*) my_host=dose ;;
35i[34]86-*-linux) my_host=i386linux ;;
36
37i860-*-*) my_host=stratus ;;
38
39mips-dec-*) my_host=decstation ;;
40mips-sgi-irix3) my_host=irix3 ;;
41mips-sgi-irix4) my_host=irix4 ;;
42
43m68*-cbm-amigados) my_host=amigados ;;
44m68*-cbm-sysv4*) my_host=amix ;;
45m68*-hp-hpux) my_host=hp300 ;;
46m68*-hp-bsd) my_host=hp300bsd ;;
47m68*-sony-*) my_host=news ;;
48m68*-sun-*) my_host=sun3 ;;
49m68*-apollo*-sysv*) my_host=apollov68 ;;
50m68*-apollo*-bsd*) my_host=apollo68 ;;
51
52m88k-motorola-*) my_host=delta88 ;;
53m88k-harris-*) my_host=harris ;;
54m88k-*-dgux) my_host=dgux ;;
55
56romp-*-*) my_host=rtbsd ;;
57
58rs6000-*-*) my_host=rs6000 ;;
59
60sparc-*-sunos64) my_host=sparc-ll ;;
61sparc-*-sysv4*) my_host=sysv4 ;;
62sparc-*-solaris2*) my_host=solaris2 ;;
63sparc-*-sysv64) my_host=sysv4-ll ;;
64sparc-*-*) my_host=sparc ;;
65
66tahoe-*-*) my_host=tahoe ;;
67
68vax-*-ultrix*) my_host=vaxult ;;
69vax-*-*) my_host=vaxbsd ;;
70
71we32k-*-*) my_host=we32k ;;
72
5b2765bf 73esac
4dfe09da 74
5b2765bf 75# Set up to make a link between the host's include file and "sysdep.h".
5868184b 76files="hosts/${my_host}.h"
5b2765bf
JG
77links="sysdep.h"
78
d89b9f99 79if [ ! -f ${srcdir}/${files} ] ; then
5b2765bf 80 if [ -n "${my_host}" ] ; then
eafc6d85 81 echo '***' No file ${srcdir}/${files} 1>&2
5b2765bf 82 fi
eafc6d85 83 echo '***' ${srcname} does not support host ${host} 1>&2
21c9f626
RP
84 exit 1
85fi
86
5b2765bf 87host_makefile_frag=
5868184b
FF
88if [ -f ${srcdir}/config/${my_host}.mh ] ; then
89 host_makefile_frag=config/${my_host}.mh
5b2765bf 90fi
4dfe09da 91
21c9f626
RP
92# per-target:
93
218ce930
JG
94# WHEN ADDING ENTRIES TO THIS MATRIX:
95# Make sure that the left side always has two dashes. Otherwise you
96# can get spurious matches. Even for unambiguous cases, do this as a
97# convention, else the table becomes a real mess to understand and maintain.
98
1e730c4b 99case "${target}" in
fbee3571
ME
100 a29k-amd-ebmon) bfd_target=a29k-coff ;;
101 a29k-amd-udi) bfd_target=a29k-coff ;;
102 a29k-amd-*) bfd_target=a29k-aout ;;
103 a29k-*-aout) bfd_target=a29k-aout ;;
104 a29k-*-coff) bfd_target=a29k-coff ;;
105 a29k-nyu-sym1) bfd_target=a29k-coff ;;
106 h8300-hitachi-*) bfd_target=h8300-coff ;;
107 hppa*-hp-bsd) bfd_target=hppabsd ;;
108 hppa*-hp-hpux) bfd_target=hppahpux ;;
109 i386-sco-*) bfd_target=i386-coff ;;
110 i960-wrs-vxworks) bfd_target=i960-bout ;;
111 i[34]86-*-bsd) bfd_target=i386-bsd ;;
112 i[34]86-*-sysv4*) bfd_target=i386-elf ;;
113 m60[01234]0-hp-bsd) bfd_target=hp300bsd ;;
114 m68*-ericsson-*) bfd_target=m68k-aout ;;
115 m68*-*-aout) bfd_target=m68k-aout ;;
116 m68*-*-coff) bfd_target=m68k-coff ;;
117 m680[01234]0-hp-hpux) bfd_target=hp300 ;;
118 m680[01234]0-netx-*) bfd_target=m68k-aout ;;
119 m680[01234]0-none-os68k) bfd_target=m68k-aout ;;
120 m680[01234]0-sun-*) bfd_target=m68k-aout ;;
121 m680[01234]0-wrs-vxworks) bfd_target=m68k-aout ;;
122 m683?2-hp-bsd) bfd_target=hp300bsd ;;
123 m683?2-hp-hpux) bfd_target=hp300 ;;
124 m683?2-none-os68k) bfd_target=m68k-aout ;;
125 m683?2-netx-*) bfd_target=m68k-aout ;;
126 m683?2-sun-*) bfd_target=m68k-aout ;;
127 m683?2-wrs-*) bfd_target=m68k-aout ;;
128 m68k-hp-bsd) bfd_target=hp300bsd ;;
129 m68k-hp-hpux) bfd_target=hp300 ;;
130 m68k-netx-*) bfd_target=m68k-aout ;;
131 m68k-none-os68k) bfd_target=m68k-aout ;;
132 m68k-sun-*) bfd_target=m68k-aout ;;
133 m68k-wrs-vxworks) bfd_target=m68k-aout ;;
134 m88k-harris-*) bfd_target=m88k-coff ;;
135 m88k-motorola-*) bfd_target=m88k-coff ;;
136 mips-big-*) bfd_target=irix3 ;;
137 mips-dec-*) bfd_target=decstation ;;
138 mips-sgi-*) bfd_target=irix3 ;;
139 rs6000-ibm-*) bfd_target=rs6000 ;;
140 sparc-sun-solaris2*) bfd_target=sparc-elf ;;
141 sparc-sun-sysv4) bfd_target=sparc-elf ;;
142 sparc-sun-*) bfd_target=sparc-aout ;;
143 sparc-wrs-vxworks) bfd_target=sparc-aout ;;
144 sparclite-fujitsu-*) bfd_target=sparc-aout ;;
145 tahoe-*-none) bfd_target=tahoe ;;
146 tahoe-*-*) bfd_target=tahoe ;;
147 vax-dec-*) bfd_target=vax ;;
148 vax-*-none) bfd_target=vax ;;
149 vax-*-*) bfd_target=vax ;;
150 we32k-*-*) bfd_target=we32k ;;
151 z8k*-*-*) bfd_target=z8k-coff ;;
152
153 *-*-aout) bfd_target=${target_cpu}-aout ;;
154 *-*-bsd) bfd_target=${target_cpu}-aout ;;
155 *-*-sysv4*) bfd_target=${target_cpu}-elf ;;
156 *-*-solaris2*) bfd_target=${target_cpu}-elf ;;
157 *-*-go32) bfd_target=${target_cpu}-aout ;;
158 *-*-linux*) bfd_target=${target_cpu}-linux ;;
159 *-*-sysv*) bfd_target=${target_cpu}-coff ;;
160 *-*-scosysv*) bfd_target=${target_cpu}-coff ;;
161
162 i386-none-*) bfd_target=i386-coff ;;
163 *-adobe-*) bfd_target=adobe ;;
164 *-sony-*) bfd_target=news ;;
165 *-intel-*) bfd_target=${target_cpu}-coff ;;
166 *-stratus-*) bfd_target=${target_cpu}-elf ;;
167 *-cbm-*) bfd_target=${target_cpu}-elf ;;
168 *-ncr-*) bfd_target=${target_cpu}-elf ;;
169 *-hitachi-*) echo "bad hitachi cpu" 1>&2 ; exit 1 ;;
170 *-tandem-*) bfd_target=st2000 ;;
4dfe09da
RP
171esac
172
5868184b 173if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
5b2765bf 174 if [ -n "${bfd_target}" ] ; then
eafc6d85 175 echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2
5b2765bf 176 fi
eafc6d85
FF
177 echo '***' BFD does not support target ${target} 1>&2
178 echo '***' Look in bfd/configure.in for supported targets 1>&2
21c9f626
RP
179 exit 1
180fi
5868184b 181target_makefile_frag=config/${bfd_target}.mt
4dfe09da 182
5b2765bf
JG
183# We don't do any links based on the target system, just very minor makefile
184# config.
This page took 0.055396 seconds and 4 git commands to generate.