force all files to end in "/* end of filename"
[deliverable/binutils-gdb.git] / gas / configure.in
CommitLineData
fecd2382
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
6srctrigger=as.c
7srcname="gas"
353deb84 8targetdependent=true
8a24a37c 9need_bfd=
1058238c
RP
10target_dependent=true
11
353deb84
RP
12# per-host:
13
b678740d 14gas_host=generic
fecd2382 15
b678740d
RP
16case "${host_cpu}" in
17a29k | rs6000 | vax) gas_host=${host_cpu} ;;
18mips)
19 case "${host_os}" in
20 ultrix) gas_host=decstation ;;
21 esac
353deb84 22 ;;
74cc5508 23*)
b678740d
RP
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
74cc5508
RP
38 ;;
39esac
40
b678740d
RP
41# per-target:
42
43# assign cpu type
44emulation=generic
45
46cpu_type=${target_cpu}
47
74cc5508 48# assign object format
b678740d 49case ${target_os} in
3c9d74a8 50bout*) obj_format=bout ;;
1058238c 51nindy*) obj_format=bout ;;
3c9d74a8 52bsd* | sunos*) obj_format=aout ;;
8a24a37c 53
ada269da 54ebmon-old)
605cd2a3
SC
55 obj_format=coff
56 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
ada269da
SC
57 target_cpu=ebmon29k
58 ;;
59
60ebmon)
8b228fe9 61 obj_format=coffbfd
ada269da 62 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
605cd2a3
SC
63 target_cpu=ebmon29k
64 ;;
3c9d74a8
RP
65
66generic) obj_format=generic ;;
67
8b228fe9
RP
68hms)
69 obj_format=coffbfd
8a24a37c
SC
70 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
71 ;;
72
ace68c4e
SC
73sysv32)
74 obj_format=coff
75 emulation=sysv32
76 ;;
3c9d74a8 77
ace68c4e
SC
78coff* | 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 ;;
8b228fe9
RP
88vxworks)
89 case ${target_cpu} in
90 i960) obj_format=bout ;;
91 *) obj_format=aout ;;
92 esac
93 ;;
3c9d74a8
RP
94*)
95 case ${target_vendor} in
96 aout) obj_format=aout ;;
97 bout) obj_format=bout ;;
ace68c4e
SC
98 coff)
99 obj_format=coff
100 case ${target_cpu} in
101 i960) emulation=ic960 ;;
102 esac
103 ;;
3c9d74a8
RP
104 *) obj_format=aout ;;
105 esac
74cc5508 106 ;;
3c9d74a8 107
fecd2382
RP
108esac
109
74cc5508 110# assign floating point type
b678740d 111case ${target_cpu} in
3c9d74a8
RP
112vax) atof=vax ;;
113*) atof=ieee ;;
fecd2382
RP
114esac
115
8a24a37c
SC
116# and target makefile frag
117
3c9d74a8 118target_makefile_frag=config/mt-${target_cpu}
8a24a37c 119
b678740d 120files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 121 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
122 config/obj-${obj_format}.h config/obj-${obj_format}.c \
123 config/atof-${atof}.c"
124
fecd2382 125links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
8b228fe9
RP
126
127# end of gas/configure.in
This page took 0.046464 seconds and 4 git commands to generate.