]> Git Repo - binutils.git/blob - gas/configure.in
doc. bring it in, use it.
[binutils.git] / gas / configure.in
1 # This file is configure.inj
2 #
3 #   Copyright (C) 1987-1992 Free Software Foundation, Inc.
4 #   
5 #  This file is part of GAS, the GNU Assembler.
6 #   
7 #   GAS is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License as published by
9 #   the Free Software Foundation; either version 2, or (at your option)
10 #   any later version.
11 #   
12 #   GAS is distributed in the hope that it will be useful,
13 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #   GNU General Public License for more details.
16 #   
17 #   You should have received a copy of the GNU General Public License
18 #   along with GAS; see the file COPYING.  If not, write to
19 #   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20 #
21
22 # This file is a shell script that supplies the information necessary
23 # to tailor a template configure script into the configure script
24 # appropriate for this directory.  For more information, check any
25 # existing configure script.
26
27 srctrigger=as.c
28 srcname="gas"
29 need_bfd=
30 configdirs=doc
31
32 # per-host:
33
34 gas_host=generic
35
36 case "${host_cpu}" in
37 a29k | rs6000 | vax)  gas_host=${host_cpu} ;;   
38 mips)
39         case "${host_os}" in
40         ultrix) gas_host=decstation ;;
41         esac
42         ;;
43 *)
44         case "${host_os}" in
45         ansi | ultrix | hpux | sysv*)   gas_host=${host_os} ;;
46         *)
47                 case "${host_vendor}" in
48                 sun)
49                         case "${host_cpu}" in
50                         m68k)   gas_host=sun3 ;;
51                         i386)   gas_host=sun386 ;;
52                         sparc)  gas_host=sun4 ;;
53                         esac
54                         ;;
55                 esac
56                 ;;
57         esac
58         ;;
59 esac
60
61 # per-target:
62
63 # assign cpu type
64 emulation=generic
65
66 cpu_type=${target_cpu}
67
68 # assign object format
69 case ${target_os} in
70 bout*) obj_format=bout ;;
71 nindy*) obj_format=bout ;;
72 bsd* | sunos*) obj_format=aout ;;
73
74 ebmon-old)
75         obj_format=coff
76         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
77         target_cpu=ebmon29k
78         ;;
79
80 ebmon)
81         obj_format=coffbfd
82         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
83         target_cpu=ebmon29k
84         ;;
85
86 generic) obj_format=generic ;;
87
88 hms)
89         obj_format=coffbfd
90         need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a"
91         ;;
92
93 sysv32)
94         obj_format=coff
95         emulation=sysv32
96         ;;
97
98 coff* | sysv*)
99         obj_format=coff
100
101         case ${target_vendor} in
102         bull)   emulation=dpx2 ;;
103         sco)    emulation=sco386 ;;
104         sun)    emulation=sun3 ;;
105         *)
106         esac
107         ;;
108 vxworks)
109         case ${target_cpu} in
110         i960) obj_format=bout ;;
111         *) obj_format=aout ;;
112         esac
113         ;;
114 *)
115         case ${target_vendor} in
116         aout) obj_format=aout ;;
117         bout) obj_format=bout ;;
118         coff)
119                 obj_format=coff
120                 case ${target_cpu} in
121                 i960) emulation=ic960 ;;
122                 esac
123                 ;;
124         *) obj_format=aout ;;
125         esac
126         ;;
127
128 esac
129
130 # assign floating point type
131 case ${target_cpu} in
132 ns32k)  atof=ns32k ;;
133 vax)    atof=vax ;;
134 *)      atof=ieee ;;
135 esac
136
137 # and target makefile frag
138
139 target_makefile_frag=config/mt-${target_cpu}
140
141 files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
142         config/tc-${cpu_type}.h config/te-${emulation}.h \
143         config/obj-${obj_format}.h config/obj-${obj_format}.c \
144         config/atof-${atof}.c"
145
146 links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
147
148 # end of gas/configure.in
This page took 0.031531 seconds and 4 git commands to generate.