force all files to end in "/* end of filename"
[platform/upstream/binutils.git] / gas / 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=as.c
7 srcname="gas"
8 targetdependent=true
9 need_bfd=
10 target_dependent=true
11
12 # per-host:
13
14 gas_host=generic
15
16 case "${host_cpu}" in
17 a29k | rs6000 | vax)  gas_host=${host_cpu} ;;   
18 mips)
19         case "${host_os}" in
20         ultrix) gas_host=decstation ;;
21         esac
22         ;;
23 *)
24         case "${host_os}" in
25         ansi | ultrix | hpux | sysv*)   gas_host=${host_os} ;;
26         *)
27                 case "${host_vendor}" in
28                 sun)
29                         case "${host_cpu}" in
30                         m68k)   gas_host=sun3 ;;
31                         i386)   gas_host=sun386 ;;
32                         sparc)  gas_host=sun4 ;;
33                         esac
34                         ;;
35                 esac
36                 ;;
37         esac
38         ;;
39 esac
40
41 # per-target:
42
43 # assign cpu type
44 emulation=generic
45
46 cpu_type=${target_cpu}
47
48 # assign object format
49 case ${target_os} in
50 bout*) obj_format=bout ;;
51 nindy*) obj_format=bout ;;
52 bsd* | sunos*) obj_format=aout ;;
53
54 ebmon-old)
55         obj_format=coff
56         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
57         target_cpu=ebmon29k
58         ;;
59
60 ebmon)
61         obj_format=coffbfd
62         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
63         target_cpu=ebmon29k
64         ;;
65
66 generic) obj_format=generic ;;
67
68 hms)
69         obj_format=coffbfd
70         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
71         ;;
72
73 sysv32)
74         obj_format=coff
75         emulation=sysv32
76         ;;
77
78 coff* | sysv*)
79         obj_format=coff
80
81         case ${target_vendor} in
82         bull)   emulation=dpx2 ;;
83         sco)    emulation=sco386 ;;
84         sun)    emulation=sun3 ;;
85         *)
86         esac
87         ;;
88 vxworks)
89         case ${target_cpu} in
90         i960) obj_format=bout ;;
91         *) obj_format=aout ;;
92         esac
93         ;;
94 *)
95         case ${target_vendor} in
96         aout) obj_format=aout ;;
97         bout) obj_format=bout ;;
98         coff)
99                 obj_format=coff
100                 case ${target_cpu} in
101                 i960) emulation=ic960 ;;
102                 esac
103                 ;;
104         *) obj_format=aout ;;
105         esac
106         ;;
107
108 esac
109
110 # assign floating point type
111 case ${target_cpu} in
112 vax) atof=vax ;;
113 *) atof=ieee ;;
114 esac
115
116 # and target makefile frag
117
118 target_makefile_frag=config/mt-${target_cpu}
119
120 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
121         config/tc-${cpu_type}.h config/te-${emulation}.h \
122         config/obj-${obj_format}.h config/obj-${obj_format}.c \
123         config/atof-${atof}.c"
124
125 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
126
127 # end of gas/configure.in