Deal with emulations more gracefully.
[deliverable/binutils-gdb.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
10 # per-host:
11
12 # per-target:
13
14 # assign cpu type
15 emulation=generic
16
17 case ${target} in
18 sun4* | sparc*)
19 cpu_type=sparc
20 ;;
21 sun3*)
22 cpu_type=m68k
23 ;;
24 i386*)
25 cpu_type=i386
26 ;;
27 i960*)
28 cpu_type=i960
29 emulation=ic960
30 ;;
31 a29k*)
32 cpu_type=a29k
33 ;;
34 m68k*)
35 cpu_type=m68k
36 ;;
37 *)
38 cpu_type=generic
39 ;;
40 esac
41
42 # assign object format
43 case ${target} in
44 *-coff)
45 obj_format=coff
46 ;;
47 *-bout)
48 obj_format=bout
49 ;;
50 generic)
51 obj_format=generic
52 ;;
53 *)
54 obj_format=aout
55 ;;
56 esac
57
58 # assign floating point type
59 case ${target} in
60 vax)
61 atof=vax
62 ;;
63 *)
64 atof=ieee
65 ;;
66 esac
67
68 files="config/ho-${host}.h config/tc-${cpu_type}.c \
69 config/tc-${cpu_type}.h config/te-${emulation}.h \
70 config/obj-${obj_format}.h config/obj-${obj_format}.c \
71 config/atof-${atof}.c"
72
73 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
This page took 0.034574 seconds and 5 git commands to generate.