]>
Commit | Line | Data |
---|---|---|
02757e59 SC |
1 | # This file is a shell script fragment that supplies the information |
2 | # necessary to tailor a template configure script into the configure | |
3 | # script appropriate for this directory. For more information, check | |
4 | # any existing configure script. | |
5 | ||
6 | srctrigger=ldmain.c | |
7 | srcname="linker" | |
818a192a | 8 | target_dependent=true |
02757e59 SC |
9 | |
10 | # per-host: | |
11 | ||
8a60817c JG |
12 | case "${host_cpu}" in |
13 | ||
14 | rs6000) my_host=rs6000 | |
15 | ;; | |
16 | ||
17 | mips) | |
18 | case "${host_vendor}" in | |
19 | dec) my_host=decstation ;; | |
20 | sgi) my_host=irix3 ;; | |
21 | esac | |
22 | ;; | |
23 | ||
24 | m88k) | |
25 | case "${host_vendor}" in | |
818a192a RP |
26 | motorola) |
27 | my_host=delta88 ;; | |
8a60817c JG |
28 | *) |
29 | case "${host_os}" in | |
30 | dgux) my_host=dgux ;; | |
02757e59 SC |
31 | esac |
32 | ;; | |
8a60817c JG |
33 | esac |
34 | ;; | |
02757e59 | 35 | |
8a60817c JG |
36 | m68k) |
37 | case "${host_vendor}" in | |
38 | cbm) | |
39 | case ${host_os} in | |
40 | amigados) my_host=amigados ;; | |
41 | svr4) my_host=amix ;; | |
02757e59 SC |
42 | esac |
43 | ;; | |
8a60817c JG |
44 | hp) |
45 | case "${host_os}" in | |
46 | hpux) my_host=hp9000 ;; | |
47 | bsd) my_host=hp300bsd ;; | |
02757e59 SC |
48 | esac |
49 | ;; | |
8a60817c JG |
50 | sony) my_host=news ;; |
51 | sun) my_host=sun3 ;; | |
52 | esac | |
53 | ;; | |
02757e59 | 54 | |
8a60817c JG |
55 | i386) |
56 | case "${host_vendor}" in | |
57 | *) | |
58 | case "${host_os}" in | |
9d1fe8a4 | 59 | go32) my_host=go32 ;; |
8a60817c JG |
60 | sysv) my_host=i386v ;; |
61 | mach) my_host=i386mach ;; | |
818a192a | 62 | bsd) my_host=i386-aout ;; |
8a60817c | 63 | msdos) my_host=dose ;; |
02757e59 SC |
64 | esac |
65 | ;; | |
8a60817c JG |
66 | esac |
67 | ;; | |
02757e59 | 68 | |
8a60817c JG |
69 | sparc) |
70 | case "${host_os}" in | |
825e656b | 71 | sunos64) my_host=sparc-ll ;; |
8a60817c | 72 | *) my_host=sparc ;; |
02757e59 | 73 | esac |
8a60817c JG |
74 | ;; |
75 | ||
76 | romp) my_host=rtbsd | |
77 | ;; | |
78 | ||
79 | a29k) my_host=ultra3 | |
80 | ;; | |
81 | ||
82 | tahoe) | |
83 | my_host=tahoe | |
84 | ;; | |
85 | ||
86 | vax) | |
87 | case "${host_os}" in | |
88 | ultrix) my_host=vaxult ;; | |
89 | *) my_host=vaxbsd ;; | |
90 | esac | |
91 | ;; | |
92 | esac | |
02757e59 | 93 | |
8a60817c | 94 | # Set up to make a link between the host's include file and "sysdep.h". |
9d1fe8a4 | 95 | files="../bfd/hosts/${my_host}.h" |
8a60817c JG |
96 | links="sysdep.h" |
97 | ||
818a192a | 98 | if [ ! -f ${srcdir}/${files} ] ; then |
8a60817c | 99 | if [ -n "${my_host}" ] ; then |
818a192a | 100 | echo '***' No file ${srcdir}/${files} |
8a60817c JG |
101 | fi |
102 | echo '***' ${srcname} does not support host ${host} | |
02757e59 SC |
103 | exit 1 |
104 | fi | |
8a60817c | 105 | host_makefile_frag= |
9d1fe8a4 SC |
106 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
107 | host_makefile_frag=config/${my_host}.mh | |
8a60817c | 108 | fi |
02757e59 SC |
109 | |
110 | # per-target: | |
111 | ||
8a60817c JG |
112 | case ${target_vendor} in |
113 | aout | coff) my_target=${target_cpu}-${target_vendor} ;; | |
114 | sun) | |
115 | case ${target_cpu} in | |
116 | sparc) my_target=sun4 ;; | |
117 | m68k) my_target=sun3 ;; | |
02757e59 SC |
118 | esac |
119 | ;; | |
9d1fe8a4 SC |
120 | wrs) |
121 | case ${target_cpu} in | |
122 | i960) my_target=vxworks960 ;; | |
123 | m68k) my_target=vxworks68;; | |
124 | esac | |
125 | ;; | |
126 | tandem) | |
127 | my_target=sun3 | |
128 | ;; | |
8a60817c JG |
129 | *) |
130 | case ${target_cpu} in | |
9d1fe8a4 | 131 | i386) my_target=go32 ;; |
8a60817c | 132 | m88k) my_target=m88k-bcs ;; |
825e656b SC |
133 | a29k) case ${target_os} in |
134 | ebmon) my_target=ebmon29k ;; | |
135 | *) my_target=coff-a29k ;; | |
136 | esac | |
137 | ;; | |
9d1fe8a4 SC |
138 | h8300) case ${target_os} in |
139 | hms) my_target=coff-h8300 ;; | |
140 | xray) my_target=ieee-h8300 ;; | |
141 | esac | |
142 | ;; | |
8a60817c JG |
143 | m68k) |
144 | case ${target_vendor} in | |
c556c426 MT |
145 | sony) my_target=news ;; |
146 | hp) my_target=hp300bsd ;; | |
9d1fe8a4 | 147 | |
c556c426 | 148 | wrs) my_target=sun3 ;; |
8a60817c JG |
149 | *) |
150 | echo "Unknown m68k target vendor:" ${target_vendor} | |
151 | exit 1 | |
152 | ;; | |
153 | esac | |
154 | ;; | |
3e4c643d | 155 | esac |
8a60817c | 156 | ;; |
02757e59 SC |
157 | esac |
158 | ||
9d1fe8a4 | 159 | target_makefile_frag=config/${my_target}.mt |