Lint (saber actually).
[binutils-gdb.git] / bfd / configure.in
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
6 srctrigger=libbfd.c
7 srcname="bfd"
8
9 # per-host:
10
11 if [ "${host_os}" = "posix" ] ; then
12 bfd_host=posix
13 else
14 case "${host_cpu}" in
15 rs6000) bfd_host=aix ;;
16 mips)
17 case "${host_vendor}" in
18 dec) bfd_host=dec3100 ;;
19 esac
20 ;;
21 m88k)
22 case "${host_vendor}" in
23 *)
24 case "${host_os}" in
25 dgux) bfd_host=dgux ;;
26 esac
27 ;;
28 esac
29 ;;
30
31 m68k)
32 case "${host_vendor}" in
33 hp)
34 case "${host_os}" in
35 hpux) bfd_host=hp9000 ;;
36 bsd) bfd_host=hp300bsd ;;
37 esac
38 ;;
39 sony) bfd_host=news ;;
40 sun) bfd_host=sun3 ;;
41 esac
42 ;;
43
44 i386)
45 case "${host_vendor}" in
46 *)
47 case "${host_os}" in
48 sysv) bfd_host=i386v ;;
49 esac
50 ;;
51 esac
52 ;;
53
54 sparc)
55 case "${host_vendor}" in
56 sun) bfd_host=sun4 ;;
57 esac
58 ;;
59
60 rtpc) bfd_host=rtbsd
61 ;;
62
63 a29k) bfd_host=ultra3
64 ;;
65
66 tahoe | vax)
67 bfd_host=${host_cpu}
68 ;;
69 esac
70 fi
71
72 if [ ! -f config/h-${bfd_host} ] ; then
73 echo '***' BFD does not support host ${host}: no file config/h-${bfd_host}
74 exit 1
75 fi
76
77 host_makefile_frag=config/h-${bfd_host}
78
79 # per-target:
80
81 case "${target_vendor}" in
82 aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;;
83 sony) bfd_target=news ;;
84 intel) bfd_target=${target_cpu}-coff ;;
85 wrs)
86 case "${target_cpu}" in
87 i960) bfd_target=i960-bout ;;
88 m68k) bfd_target=m68k-aout ;;
89 esac
90 ;;
91 sun)
92 case "${target_cpu}" in
93 m68k) bfd_target=m68k-aout ;;
94 sparc) bfd_target=sparc-aout ;;
95 esac
96 ;;
97 dec)
98 case "${target_cpu}" in
99 mips) bfd_target=dec3100 ;;
100 esac
101 ;;
102 hp)
103 case "${target_cpu}" in
104 m68k)
105 case "${target_os}" in
106 hpux) bfd_target=hp9000 ;;
107 bsd) bfd_target=hp300bsd ;;
108 esac
109 ;;
110 esac
111 ;;
112 none)
113 case "${target_cpu}" in
114 i386) bfd_target=i386-coff ;;
115 a29k) case "${target_os}" in
116 aout) bfd_target=a29k-aout ;;
117 coff) bfd_target=a29k-coff ;;
118 sym1) bfd_target=a29k-coff ;;
119 esac
120 ;;
121 esac
122 ;;
123 *)
124 case "${target_cpu}" in
125 tahoe | vax) bfd_target=${target_cpu} ;;
126 esac
127 ;;
128 esac
129
130 if [ ! -f config/t-${bfd_target} ] ; then
131 echo '***' BFD does not support target ${target}: no file config/t-${bfd_target}
132 exit 1
133 fi
134
135 target_makefile_frag=config/t-${bfd_target}
136
137 files=
138 links=