Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
[external/binutils.git] / ld / configure.in
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"
8
9 # per-host:
10
11 case "${host_cpu}" in
12
13 rs6000) my_host=rs6000
14         ;;
15
16 mips)
17         case "${host_vendor}" in
18         dec)    my_host=decstation ;;
19         sgi)    my_host=irix3 ;;
20         esac
21         ;;
22
23 m88k)
24         case "${host_vendor}" in
25         *)
26                 case "${host_os}" in
27                 dgux)   my_host=dgux ;;
28                 esac
29                 ;;
30         esac
31         ;;
32
33 m68k)
34         case "${host_vendor}" in
35         cbm)
36                 case ${host_os} in
37                 amigados)       my_host=amigados ;;
38                 svr4)           my_host=amix ;;
39                 esac
40                 ;;
41         hp)     
42                 case "${host_os}" in
43                 hpux)   my_host=hp9000 ;;
44                 bsd)    my_host=hp300bsd ;;
45                 esac
46                 ;;
47         sony)   my_host=news ;;
48         sun)    my_host=sun3 ;;
49         esac
50         ;;
51
52 i386)
53         case "${host_vendor}" in
54         *)
55                 case "${host_os}" in
56                 sysv)   my_host=i386v ;;
57                 mach)   my_host=i386mach ;;
58                 msdos)  my_host=dose ;;
59                 esac
60                 ;;
61         esac
62         ;;
63
64 sparc)
65         case "${host_os}" in
66         sunos64)        my_host=sparc-64 ;;
67         *)              my_host=sparc ;;
68         esac
69         ;;
70
71 romp)   my_host=rtbsd
72         ;;
73
74 a29k)   my_host=ultra3
75         ;;
76
77 tahoe)
78         my_host=tahoe
79         ;;
80
81 vax)
82         case "${host_os}" in
83         ultrix) my_host=vaxult ;;
84         *) my_host=vaxbsd ;;
85         esac
86         ;;
87 esac
88
89 # Set up to make a link between the host's include file and "sysdep.h".
90 files="../bfd/hosts/h-${my_host}.h"
91 links="sysdep.h"
92
93 if [ ! -f ${files} ] ; then
94         if [ -n "${my_host}" ] ; then
95                 echo '***' No file ${files}
96         fi
97         echo '***' ${srcname} does not support host ${host}
98         exit 1
99 fi
100
101 host_makefile_frag=
102 if [ -f config/h-${my_host} ] ; then
103         host_makefile_frag=config/h-${my_host}
104 fi
105
106 # per-target:
107
108 case ${target_vendor} in
109 aout | coff)    my_target=${target_cpu}-${target_vendor} ;;
110 sun)
111         case ${target_cpu} in
112         sparc)  my_target=sun4 ;;
113         m68k)   my_target=sun3 ;;
114         esac
115         ;;
116 *)
117         case ${target_cpu} in
118         m88k)   my_target=m88k-bcs ;;
119         a29k)   my_target=coff-a29k ;;
120         h8300)  my_target=h8300hds ;;
121         m68k)   
122                 case ${target_vendor} in
123                 sony)   my_target=news;;
124                 *)
125                         echo "Unknown m68k target vendor:" ${target_vendor}
126                         exit 1
127                         ;;
128                 esac
129                 ;;
130         esac
131         ;;
132 esac
133
134 target_makefile_frag=config/t-${my_target}