Moved the position of the #### lines so that the makefile fragments
[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=
353deb84
RP
10# per-host:
11
b678740d 12gas_host=generic
fecd2382 13
b678740d
RP
14case "${host_cpu}" in
15a29k | rs6000 | vax) gas_host=${host_cpu} ;;
16mips)
17 case "${host_os}" in
18 ultrix) gas_host=decstation ;;
19 esac
353deb84 20 ;;
74cc5508 21*)
b678740d
RP
22 case "${host_os}" in
23 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
24 *)
25 case "${host_vendor}" in
26 sun)
27 case "${host_cpu}" in
28 m68k) gas_host=sun3 ;;
29 i386) gas_host=sun386 ;;
30 sparc) gas_host=sun4 ;;
31 esac
32 ;;
33 esac
34 ;;
35 esac
74cc5508
RP
36 ;;
37esac
38
b678740d
RP
39# per-target:
40
41# assign cpu type
42emulation=generic
43
44cpu_type=${target_cpu}
45
74cc5508 46# assign object format
b678740d 47case ${target_os} in
3c9d74a8
RP
48bout*) obj_format=bout ;;
49bsd* | sunos*) obj_format=aout ;;
8a24a37c 50
ada269da 51ebmon-old)
605cd2a3
SC
52 obj_format=coff
53 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
ada269da
SC
54 target_cpu=ebmon29k
55 ;;
56
57ebmon)
58 obj_format=coff-bfd
59 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
605cd2a3
SC
60 target_cpu=ebmon29k
61 ;;
3c9d74a8
RP
62
63generic) obj_format=generic ;;
64
8a24a37c 65hds)
ace68c4e 66 obj_format=coff-bfd
8a24a37c
SC
67 need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
68 ;;
69
ace68c4e
SC
70sysv32)
71 obj_format=coff
72 emulation=sysv32
73 ;;
3c9d74a8 74
ace68c4e
SC
75coff* | sysv*)
76 obj_format=coff
77
78 case ${target_vendor} in
79 bull) emulation=dpx2 ;;
80 sco) emulation=sco386 ;;
81 sun) emulation=sun3 ;;
82 *)
83 esac
84 ;;
3c9d74a8
RP
85*)
86 case ${target_vendor} in
87 aout) obj_format=aout ;;
88 bout) obj_format=bout ;;
ace68c4e
SC
89 coff)
90 obj_format=coff
91 case ${target_cpu} in
92 i960) emulation=ic960 ;;
93 esac
94 ;;
3c9d74a8
RP
95 *) obj_format=aout ;;
96 esac
74cc5508 97 ;;
3c9d74a8 98
fecd2382
RP
99esac
100
74cc5508 101# assign floating point type
b678740d 102case ${target_cpu} in
3c9d74a8
RP
103vax) atof=vax ;;
104*) atof=ieee ;;
fecd2382
RP
105esac
106
8a24a37c
SC
107# and target makefile frag
108
3c9d74a8 109target_makefile_frag=config/mt-${target_cpu}
8a24a37c 110
b678740d 111files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 112 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
113 config/obj-${obj_format}.h config/obj-${obj_format}.c \
114 config/atof-${atof}.c"
115
fecd2382 116links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
This page took 0.043529 seconds and 4 git commands to generate.