Initial revision
[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
RP
8targetdependent=true
9
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
RP
47case ${target_os} in
48sysv* | -coff*)
fecd2382
RP
49 obj_format=coff
50 ;;
b678740d 51bout*)
fecd2382
RP
52 obj_format=bout
53 ;;
b678740d
RP
54bsd* | sunos* | *)
55 obj_format=aout
56 ;;
74cc5508
RP
57generic)
58 obj_format=generic
59 ;;
fecd2382
RP
60esac
61
74cc5508 62# assign floating point type
b678740d 63case ${target_cpu} in
fecd2382
RP
64vax)
65 atof=vax
66 ;;
67*)
68 atof=ieee
69 ;;
70esac
71
b678740d 72files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
353deb84 73 config/tc-${cpu_type}.h config/te-${emulation}.h \
74cc5508
RP
74 config/obj-${obj_format}.h config/obj-${obj_format}.c \
75 config/atof-${atof}.c"
76
fecd2382 77links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
This page took 0.032812 seconds and 4 git commands to generate.