Commit | Line | Data |
---|---|---|
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 | 6 | configdirs="doc" |
21c9f626 | 7 | srctrigger=libbfd.c |
5b2765bf | 8 | srcname="BFD" |
d89b9f99 | 9 | target_dependent=true |
21c9f626 RP |
10 | |
11 | # per-host: | |
12 | ||
fbee3571 | 13 | case "${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 | ||
22 | a29k-*-*) my_host=ultra3 ;; | |
23 | ||
24 | hppa*-hp-hpux) my_host=hppahpux ;; | |
25 | hppa*-hp-bsd) my_host=hppabsd ;; | |
26 | ||
27 | i[34]86-ncr*-sysv4*) my_host=ncr3000 ;; | |
28 | i[34]86-*-go32) my_host=go32 ;; | |
29 | i[34]86-*-sysv4*) my_host=i386v4 ;; | |
30 | i[34]86-*-sysv*) my_host=i386v ;; | |
31 | i[34]86-*-solaris*) my_host=i386v ;; | |
32 | i[34]86-*-sco*) my_host=i386v ;; | |
33 | i[34]86-*-mach*) my_host=i386mach ;; | |
34 | i[34]86-*-msdos*) my_host=dose ;; | |
35 | i[34]86-*-linux) my_host=i386linux ;; | |
36 | ||
37 | i860-*-*) my_host=stratus ;; | |
38 | ||
39 | mips-dec-*) my_host=decstation ;; | |
40 | mips-sgi-irix3) my_host=irix3 ;; | |
41 | mips-sgi-irix4) my_host=irix4 ;; | |
42 | ||
43 | m68*-cbm-amigados) my_host=amigados ;; | |
44 | m68*-cbm-sysv4*) my_host=amix ;; | |
45 | m68*-hp-hpux) my_host=hp300 ;; | |
46 | m68*-hp-bsd) my_host=hp300bsd ;; | |
47 | m68*-sony-*) my_host=news ;; | |
48 | m68*-sun-*) my_host=sun3 ;; | |
49 | m68*-apollo*-sysv*) my_host=apollov68 ;; | |
50 | m68*-apollo*-bsd*) my_host=apollo68 ;; | |
51 | ||
52 | m88k-motorola-*) my_host=delta88 ;; | |
53 | m88k-harris-*) my_host=harris ;; | |
54 | m88k-*-dgux) my_host=dgux ;; | |
55 | ||
56 | romp-*-*) my_host=rtbsd ;; | |
57 | ||
58 | rs6000-*-*) my_host=rs6000 ;; | |
59 | ||
60 | sparc-*-sunos64) my_host=sparc-ll ;; | |
61 | sparc-*-sysv4*) my_host=sysv4 ;; | |
62 | sparc-*-solaris2*) my_host=solaris2 ;; | |
63 | sparc-*-sysv64) my_host=sysv4-ll ;; | |
64 | sparc-*-*) my_host=sparc ;; | |
65 | ||
66 | tahoe-*-*) my_host=tahoe ;; | |
67 | ||
68 | vax-*-ultrix*) my_host=vaxult ;; | |
69 | vax-*-*) my_host=vaxbsd ;; | |
70 | ||
71 | we32k-*-*) my_host=we32k ;; | |
72 | ||
5b2765bf | 73 | esac |
4dfe09da | 74 | |
5b2765bf | 75 | # Set up to make a link between the host's include file and "sysdep.h". |
5868184b | 76 | files="hosts/${my_host}.h" |
5b2765bf JG |
77 | links="sysdep.h" |
78 | ||
d89b9f99 | 79 | if [ ! -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 |
85 | fi | |
86 | ||
5b2765bf | 87 | host_makefile_frag= |
5868184b FF |
88 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
89 | host_makefile_frag=config/${my_host}.mh | |
5b2765bf | 90 | fi |
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 | 99 | case "${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 |
171 | esac |
172 | ||
5868184b | 173 | if [ ! -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 |
180 | fi | |
5868184b | 181 | target_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. |