source: rtems/configure.in @ 254b4450

4.104.114.84.95
Last change on this file since 254b4450 was 254b4450, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 1, 1997 at 11:07:52 PM

This set of changes is the build of what was required to convert to
GNU autoconf. This is the first large step in allowing an RTEMS
user to perform a one-tree build (per crossgcc FAQ) including RTEMS
in the build process. With this change RTEMS is configured in
built in the same style as the GNU tools, yet retains the basic
structure of its traditional Makefiles (ala Tony Bennett).
Jiri Gaisler (jgais@…) deserves (and received)
a big thank you for doing this.

There are still issues to be resolved but as of this commit, all target
which can be built on a linux host have been using a modified version
of the source Jiri submitted. This source was merged and most targets
built in the tree before this commit.

There are some issues which remain to be resolved but they are primarily
related to host OS dependencies, script issues, the use of gawk
for hack_specs, and the dependence on gcc snapshots. These will
be resolved.

  • Property mode set to 100644
File size: 19.4 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.12)
3AC_INIT(README)
4
5a29k_mk="c/src/exec/score/cpu/a29k/Makefile \
6c/src/lib/libbsp/a29k/Makefile \
7c/src/lib/libbsp/a29k/portsw/Makefile \
8c/src/lib/libbsp/a29k/portsw/console/Makefile \
9c/src/lib/libbsp/a29k/portsw/include/Makefile \
10c/src/lib/libbsp/a29k/portsw/shmsupp/Makefile \
11c/src/lib/libbsp/a29k/portsw/startup/Makefile \
12c/src/lib/libbsp/a29k/portsw/wrapup/Makefile \
13c/src/lib/start/a29k/Makefile"
14
15i386_mk="c/src/exec/score/cpu/i386/Makefile \
16c/src/lib/libbsp/i386/Makefile \
17c/src/lib/libbsp/i386/force386/Makefile \
18c/src/lib/libbsp/i386/force386/clock/Makefile \
19c/src/lib/libbsp/i386/force386/console/Makefile \
20c/src/lib/libbsp/i386/force386/include/Makefile \
21c/src/lib/libbsp/i386/force386/shmsupp/Makefile \
22c/src/lib/libbsp/i386/force386/startup/Makefile \
23c/src/lib/libbsp/i386/force386/timer/Makefile \
24c/src/lib/libbsp/i386/force386/wrapup/Makefile \
25c/src/lib/libbsp/i386/i386ex/Makefile \
26c/src/lib/libbsp/i386/i386ex/clock/Makefile \
27c/src/lib/libbsp/i386/i386ex/console/Makefile \
28c/src/lib/libbsp/i386/i386ex/include/Makefile \
29c/src/lib/libbsp/i386/i386ex/startup/Makefile \
30c/src/lib/libbsp/i386/i386ex/timer/Makefile \
31c/src/lib/libbsp/i386/i386ex/wrapup/Makefile \
32c/src/lib/start/i386/Makefile"
33
34i386_go32_mk="c/src/exec/score/cpu/i386/Makefile \
35c/src/lib/libbsp/i386/Makefile \
36c/src/lib/libbsp/i386/go32/Makefile \
37c/src/lib/libbsp/i386/go32/clock/Makefile \
38c/src/lib/libbsp/i386/go32/console/Makefile \
39c/src/lib/libbsp/i386/go32/include/Makefile \
40c/src/lib/libbsp/i386/go32/startup/Makefile \
41c/src/lib/libbsp/i386/go32/timer/Makefile \
42c/src/lib/libbsp/i386/go32/wrapup/Makefile"
43
44m68k_mk="c/src/exec/score/cpu/m68k/Makefile \
45c/src/lib/libbsp/m68k/Makefile \
46c/src/lib/libbsp/m68k/dmv152/Makefile \
47c/src/lib/libbsp/m68k/dmv152/clock/Makefile \
48c/src/lib/libbsp/m68k/dmv152/console/Makefile \
49c/src/lib/libbsp/m68k/dmv152/include/Makefile \
50c/src/lib/libbsp/m68k/dmv152/spurious/Makefile \
51c/src/lib/libbsp/m68k/dmv152/startup/Makefile \
52c/src/lib/libbsp/m68k/dmv152/timer/Makefile \
53c/src/lib/libbsp/m68k/dmv152/wrapup/Makefile \
54c/src/lib/libbsp/m68k/efi332/Makefile \
55c/src/lib/libbsp/m68k/efi332/clock/Makefile \
56c/src/lib/libbsp/m68k/efi332/console/Makefile \
57c/src/lib/libbsp/m68k/efi332/include/Makefile \
58c/src/lib/libbsp/m68k/efi332/spurious/Makefile \
59c/src/lib/libbsp/m68k/efi332/startup/Makefile \
60c/src/lib/libbsp/m68k/efi332/start332/Makefile \
61c/src/lib/libbsp/m68k/efi332/timer/Makefile \
62c/src/lib/libbsp/m68k/efi332/wrapup/Makefile \
63c/src/lib/libbsp/m68k/efi68k/Makefile \
64c/src/lib/libbsp/m68k/efi68k/clock/Makefile \
65c/src/lib/libbsp/m68k/efi68k/console/Makefile \
66c/src/lib/libbsp/m68k/efi68k/include/Makefile \
67c/src/lib/libbsp/m68k/efi68k/spurious/Makefile \
68c/src/lib/libbsp/m68k/efi68k/startup/Makefile \
69c/src/lib/libbsp/m68k/efi68k/start68k/Makefile \
70c/src/lib/libbsp/m68k/efi68k/timer/Makefile \
71c/src/lib/libbsp/m68k/efi68k/wrapup/Makefile \
72c/src/lib/libbsp/m68k/gen68302/Makefile \
73c/src/lib/libbsp/m68k/gen68302/clock/Makefile \
74c/src/lib/libbsp/m68k/gen68302/console/Makefile \
75c/src/lib/libbsp/m68k/gen68302/include/Makefile \
76c/src/lib/libbsp/m68k/gen68302/start302/Makefile \
77c/src/lib/libbsp/m68k/gen68302/startup/Makefile \
78c/src/lib/libbsp/m68k/gen68302/timer/Makefile \
79c/src/lib/libbsp/m68k/gen68302/wrapup/Makefile \
80c/src/lib/libbsp/m68k/gen68360/Makefile \
81c/src/lib/libbsp/m68k/gen68360/clock/Makefile \
82c/src/lib/libbsp/m68k/gen68360/console/Makefile \
83c/src/lib/libbsp/m68k/gen68360/include/Makefile \
84c/src/lib/libbsp/m68k/gen68360/start360/Makefile \
85c/src/lib/libbsp/m68k/gen68360/startup/Makefile \
86c/src/lib/libbsp/m68k/gen68360/timer/Makefile \
87c/src/lib/libbsp/m68k/gen68360/wrapup/Makefile \
88c/src/lib/libbsp/m68k/idp/Makefile \
89c/src/lib/libbsp/m68k/idp/clock/Makefile \
90c/src/lib/libbsp/m68k/idp/console/Makefile \
91c/src/lib/libbsp/m68k/idp/include/Makefile \
92c/src/lib/libbsp/m68k/idp/startup/Makefile \
93c/src/lib/libbsp/m68k/idp/timer/Makefile \
94c/src/lib/libbsp/m68k/idp/wrapup/Makefile \
95c/src/lib/libbsp/m68k/mvme136/Makefile \
96c/src/lib/libbsp/m68k/mvme136/clock/Makefile \
97c/src/lib/libbsp/m68k/mvme136/console/Makefile \
98c/src/lib/libbsp/m68k/mvme136/include/Makefile \
99c/src/lib/libbsp/m68k/mvme136/shmsupp/Makefile \
100c/src/lib/libbsp/m68k/mvme136/startup/Makefile \
101c/src/lib/libbsp/m68k/mvme136/timer/Makefile \
102c/src/lib/libbsp/m68k/mvme136/wrapup/Makefile \
103c/src/lib/libbsp/m68k/mvme147/Makefile \
104c/src/lib/libbsp/m68k/mvme147/clock/Makefile \
105c/src/lib/libbsp/m68k/mvme147/console/Makefile \
106c/src/lib/libbsp/m68k/mvme147/include/Makefile \
107c/src/lib/libbsp/m68k/mvme147/startup/Makefile \
108c/src/lib/libbsp/m68k/mvme147/timer/Makefile \
109c/src/lib/libbsp/m68k/mvme147/wrapup/Makefile \
110c/src/lib/libbsp/m68k/mvme147s/Makefile \
111c/src/lib/libbsp/m68k/mvme147s/clock/Makefile \
112c/src/lib/libbsp/m68k/mvme147s/console/Makefile \
113c/src/lib/libbsp/m68k/mvme147s/include/Makefile \
114c/src/lib/libbsp/m68k/mvme147s/shmsupp/Makefile \
115c/src/lib/libbsp/m68k/mvme147s/startup/Makefile \
116c/src/lib/libbsp/m68k/mvme147s/timer/Makefile \
117c/src/lib/libbsp/m68k/mvme147s/wrapup/Makefile \
118c/src/lib/libbsp/m68k/mvme162/Makefile \
119c/src/lib/libbsp/m68k/mvme162/clock/Makefile \
120c/src/lib/libbsp/m68k/mvme162/console/Makefile \
121c/src/lib/libbsp/m68k/mvme162/include/Makefile \
122c/src/lib/libbsp/m68k/mvme162/startup/Makefile \
123c/src/lib/libbsp/m68k/mvme162/timer/Makefile \
124c/src/lib/libbsp/m68k/mvme162/tools/Makefile \
125c/src/lib/libbsp/m68k/mvme162/wrapup/Makefile \
126c/src/lib/start/m68k/Makefile"
127
128no_cpu_mk="c/src/exec/score/cpu/no_cpu/Makefile \
129c/src/lib/libbsp/no_cpu/Makefile \
130c/src/lib/libbsp/no_cpu/no_bsp/Makefile \
131c/src/lib/libbsp/no_cpu/no_bsp/clock/Makefile \
132c/src/lib/libbsp/no_cpu/no_bsp/console/Makefile \
133c/src/lib/libbsp/no_cpu/no_bsp/include/Makefile \
134c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/Makefile \
135c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile \
136c/src/lib/libbsp/no_cpu/no_bsp/timer/Makefile \
137c/src/lib/libbsp/no_cpu/no_bsp/wrapup/Makefile"
138
139sparc_mk="c/src/exec/score/cpu/sparc/Makefile \
140c/src/lib/libbsp/sparc/Makefile \
141c/src/lib/libbsp/sparc/erc32/Makefile \
142c/src/lib/libbsp/sparc/erc32/clock/Makefile \
143c/src/lib/libbsp/sparc/erc32/console/Makefile \
144c/src/lib/libbsp/sparc/erc32/include/Makefile \
145c/src/lib/libbsp/sparc/erc32/startsis/Makefile \
146c/src/lib/libbsp/sparc/erc32/startup/Makefile \
147c/src/lib/libbsp/sparc/erc32/timer/Makefile \
148c/src/lib/libbsp/sparc/erc32/wrapup/Makefile \
149c/src/lib/libcpu/sparc/Makefile \
150c/src/lib/libcpu/sparc/reg_win/Makefile"
151
152hppa1_1_mk="c/src/exec/score/cpu/hppa1_1/Makefile \
153c/src/exec/score/tools/hppa1_1/Makefile \
154c/src/lib/libbsp/hppa1_1/Makefile \
155c/src/lib/libbsp/hppa1_1/pxfl/Makefile \
156c/src/lib/libbsp/hppa1_1/simhppa/Makefile \
157c/src/lib/libbsp/hppa1_1/simhppa/include/Makefile \
158c/src/lib/libbsp/hppa1_1/simhppa/shmsupp/Makefile \
159c/src/lib/libbsp/hppa1_1/simhppa/startup/Makefile \
160c/src/lib/libbsp/hppa1_1/simhppa/tools/Makefile \
161c/src/lib/libbsp/hppa1_1/simhppa/tty/Makefile \
162c/src/lib/libbsp/hppa1_1/simhppa/wrapup/Makefile \
163c/src/lib/libcpu/hppa1_1/Makefile \
164c/src/lib/libcpu/hppa1_1/clock/Makefile \
165c/src/lib/libcpu/hppa1_1/include/Makefile \
166c/src/lib/libcpu/hppa1_1/milli/Makefile \
167c/src/lib/libcpu/hppa1_1/runway/Makefile \
168c/src/lib/libcpu/hppa1_1/semaphore/Makefile \
169c/src/lib/libcpu/hppa1_1/timer/Makefile \
170c/src/lib/start/hppa1_1/Makefile"
171
172i960_mk="c/src/exec/score/cpu/i960/Makefile \
173c/src/lib/libbsp/i960/Makefile \
174c/src/lib/libbsp/i960/cvme961/Makefile \
175c/src/lib/libbsp/i960/cvme961/clock/Makefile \
176c/src/lib/libbsp/i960/cvme961/console/Makefile \
177c/src/lib/libbsp/i960/cvme961/include/Makefile \
178c/src/lib/libbsp/i960/cvme961/shmsupp/Makefile \
179c/src/lib/libbsp/i960/cvme961/startup/Makefile \
180c/src/lib/libbsp/i960/cvme961/timer/Makefile \
181c/src/lib/libbsp/i960/cvme961/wrapup/Makefile \
182c/src/lib/start/i960/Makefile"
183
184mips64orion_mk="c/src/exec/score/cpu/mips64orion/Makefile \
185c/src/lib/libbsp/mips64orion/Makefile \
186c/src/lib/libbsp/mips64orion/p4000/Makefile \
187c/src/lib/libbsp/mips64orion/p4000/console/Makefile \
188c/src/lib/libbsp/mips64orion/p4000/include/Makefile \
189c/src/lib/libbsp/mips64orion/p4000/liblnk/Makefile \
190c/src/lib/libbsp/mips64orion/p4000/startup/Makefile \
191c/src/lib/libbsp/mips64orion/p4000/wrapup/Makefile \
192c/src/lib/libcpu/mips64orion/Makefile \
193c/src/lib/libcpu/mips64orion/clock/Makefile \
194c/src/lib/libcpu/mips64orion/include/Makefile \
195c/src/lib/libcpu/mips64orion/timer/Makefile \
196c/src/lib/start/mips64orion/Makefile"
197
198powerpc_mk="c/src/exec/score/cpu/ppc/Makefile \
199c/src/lib/libbsp/ppc/Makefile \
200c/src/lib/libbsp/ppc/papyrus/Makefile \
201c/src/lib/libbsp/ppc/papyrus/dlentry/Makefile \
202c/src/lib/libbsp/ppc/papyrus/flashentry/Makefile \
203c/src/lib/libbsp/ppc/papyrus/include/Makefile \
204c/src/lib/libbsp/ppc/papyrus/startup/Makefile \
205c/src/lib/libbsp/ppc/papyrus/wrapup/Makefile \
206c/src/lib/libcpu/ppc/Makefile \
207c/src/lib/libcpu/ppc/ppc403/Makefile \
208c/src/lib/libcpu/ppc/ppc403/clock/Makefile \
209c/src/lib/libcpu/ppc/ppc403/console/Makefile \
210c/src/lib/libcpu/ppc/ppc403/include/Makefile \
211c/src/lib/libcpu/ppc/ppc403/timer/Makefile \
212c/src/lib/libcpu/ppc/ppc403/vectors/Makefile"
213
214posix_mk="c/src/exec/score/cpu/unix/Makefile \
215c/src/exec/score/tools/unix/Makefile \
216c/src/lib/libbsp/unix/Makefile \
217c/src/lib/libbsp/unix/posix/Makefile \
218c/src/lib/libbsp/unix/posix/clock/Makefile \
219c/src/lib/libbsp/unix/posix/console/Makefile \
220c/src/lib/libbsp/unix/posix/include/Makefile \
221c/src/lib/libbsp/unix/posix/shmsupp/Makefile \
222c/src/lib/libbsp/unix/posix/startup/Makefile \
223c/src/lib/libbsp/unix/posix/timer/Makefile \
224c/src/lib/libbsp/unix/posix/wrapup/Makefile"
225
226tests_mk="c/src/tests/Makefile \
227c/src/tests/libtests/Makefile \
228c/src/tests/libtests/malloctest/Makefile \
229c/src/tests/libtests/stackchk/Makefile \
230c/src/tests/mptests/Makefile \
231c/src/tests/mptests/mp01/Makefile \
232c/src/tests/mptests/mp01/node1/Makefile \
233c/src/tests/mptests/mp01/node2/Makefile \
234c/src/tests/mptests/mp02/Makefile \
235c/src/tests/mptests/mp02/node1/Makefile \
236c/src/tests/mptests/mp02/node2/Makefile \
237c/src/tests/mptests/mp03/Makefile \
238c/src/tests/mptests/mp03/node1/Makefile \
239c/src/tests/mptests/mp03/node2/Makefile \
240c/src/tests/mptests/mp04/Makefile \
241c/src/tests/mptests/mp04/node1/Makefile \
242c/src/tests/mptests/mp04/node2/Makefile \
243c/src/tests/mptests/mp05/Makefile \
244c/src/tests/mptests/mp05/node1/Makefile \
245c/src/tests/mptests/mp05/node2/Makefile \
246c/src/tests/mptests/mp06/Makefile \
247c/src/tests/mptests/mp06/node1/Makefile \
248c/src/tests/mptests/mp06/node2/Makefile \
249c/src/tests/mptests/mp07/Makefile \
250c/src/tests/mptests/mp07/node1/Makefile \
251c/src/tests/mptests/mp07/node2/Makefile \
252c/src/tests/mptests/mp08/Makefile \
253c/src/tests/mptests/mp08/node1/Makefile \
254c/src/tests/mptests/mp08/node2/Makefile \
255c/src/tests/mptests/mp09/Makefile \
256c/src/tests/mptests/mp09/node1/Makefile \
257c/src/tests/mptests/mp09/node2/Makefile \
258c/src/tests/mptests/mp10/Makefile \
259c/src/tests/mptests/mp10/node1/Makefile \
260c/src/tests/mptests/mp10/node2/Makefile \
261c/src/tests/mptests/mp11/Makefile \
262c/src/tests/mptests/mp11/node1/Makefile \
263c/src/tests/mptests/mp11/node2/Makefile \
264c/src/tests/mptests/mp12/Makefile \
265c/src/tests/mptests/mp12/node1/Makefile \
266c/src/tests/mptests/mp12/node2/Makefile \
267c/src/tests/mptests/mp13/Makefile \
268c/src/tests/mptests/mp13/node1/Makefile \
269c/src/tests/mptests/mp13/node2/Makefile \
270c/src/tests/mptests/mp14/Makefile \
271c/src/tests/mptests/mp14/node1/Makefile \
272c/src/tests/mptests/mp14/node2/Makefile \
273c/src/tests/psxtests/Makefile \
274c/src/tests/psxtests/psx01/Makefile \
275c/src/tests/psxtests/psx02/Makefile \
276c/src/tests/psxtests/psx03/Makefile \
277c/src/tests/psxtests/psx04/Makefile \
278c/src/tests/psxtests/psx05/Makefile \
279c/src/tests/psxtests/psx06/Makefile \
280c/src/tests/psxtests/psx07/Makefile \
281c/src/tests/psxtests/psx08/Makefile \
282c/src/tests/psxtests/psx09/Makefile \
283c/src/tests/psxtests/psx10/Makefile \
284c/src/tests/psxtests/psx11/Makefile \
285c/src/tests/psxtests/psx12/Makefile \
286c/src/tests/psxtests/psxhdrs/Makefile \
287c/src/tests/psxtests/support/Makefile \
288c/src/tests/psxtests/support/include/Makefile \
289c/src/tests/samples/Makefile \
290c/src/tests/samples/base_mp/Makefile \
291c/src/tests/samples/base_mp/node1/Makefile \
292c/src/tests/samples/base_mp/node2/Makefile \
293c/src/tests/samples/base_sp/Makefile \
294c/src/tests/samples/cdtest/Makefile \
295c/src/tests/samples/hello/Makefile \
296c/src/tests/samples/paranoia/Makefile \
297c/src/tests/samples/ticker/Makefile \
298c/src/tests/sptests/Makefile \
299c/src/tests/sptests/sp01/Makefile \
300c/src/tests/sptests/sp02/Makefile \
301c/src/tests/sptests/sp03/Makefile \
302c/src/tests/sptests/sp04/Makefile \
303c/src/tests/sptests/sp05/Makefile \
304c/src/tests/sptests/sp06/Makefile \
305c/src/tests/sptests/sp07/Makefile \
306c/src/tests/sptests/sp08/Makefile \
307c/src/tests/sptests/sp09/Makefile \
308c/src/tests/sptests/sp11/Makefile \
309c/src/tests/sptests/sp12/Makefile \
310c/src/tests/sptests/sp13/Makefile \
311c/src/tests/sptests/sp14/Makefile \
312c/src/tests/sptests/sp15/Makefile \
313c/src/tests/sptests/sp16/Makefile \
314c/src/tests/sptests/sp17/Makefile \
315c/src/tests/sptests/sp19/Makefile \
316c/src/tests/sptests/sp20/Makefile \
317c/src/tests/sptests/sp21/Makefile \
318c/src/tests/sptests/sp22/Makefile \
319c/src/tests/sptests/sp23/Makefile \
320c/src/tests/sptests/sp24/Makefile \
321c/src/tests/sptests/sp25/Makefile \
322c/src/tests/sptests/spfatal/Makefile \
323c/src/tests/sptests/spsize/Makefile \
324c/src/tests/support/Makefile \
325c/src/tests/support/include/Makefile \
326c/src/tests/support/stubdr/Makefile \
327c/src/tests/support/wrapup/Makefile \
328c/src/tests/tmtests/Makefile \
329c/src/tests/tmtests/include/Makefile \
330c/src/tests/tmtests/tm01/Makefile \
331c/src/tests/tmtests/tm02/Makefile \
332c/src/tests/tmtests/tm03/Makefile \
333c/src/tests/tmtests/tm04/Makefile \
334c/src/tests/tmtests/tm05/Makefile \
335c/src/tests/tmtests/tm06/Makefile \
336c/src/tests/tmtests/tm07/Makefile \
337c/src/tests/tmtests/tm08/Makefile \
338c/src/tests/tmtests/tm09/Makefile \
339c/src/tests/tmtests/tm10/Makefile \
340c/src/tests/tmtests/tm11/Makefile \
341c/src/tests/tmtests/tm12/Makefile \
342c/src/tests/tmtests/tm13/Makefile \
343c/src/tests/tmtests/tm14/Makefile \
344c/src/tests/tmtests/tm15/Makefile \
345c/src/tests/tmtests/tm16/Makefile \
346c/src/tests/tmtests/tm17/Makefile \
347c/src/tests/tmtests/tm18/Makefile \
348c/src/tests/tmtests/tm19/Makefile \
349c/src/tests/tmtests/tm20/Makefile \
350c/src/tests/tmtests/tm21/Makefile \
351c/src/tests/tmtests/tm22/Makefile \
352c/src/tests/tmtests/tm23/Makefile \
353c/src/tests/tmtests/tm24/Makefile \
354c/src/tests/tmtests/tm25/Makefile \
355c/src/tests/tmtests/tm26/Makefile \
356c/src/tests/tmtests/tm27/Makefile \
357c/src/tests/tmtests/tm28/Makefile \
358c/src/tests/tmtests/tm29/Makefile \
359c/src/tests/tmtests/tmck/Makefile \
360c/src/tests/tmtests/tmoverhd/Makefile \
361c/src/tests/tools/Makefile \
362c/src/tests/tools/generic/Makefile \
363c/src/tests/tools/hppa1_1/Makefile \
364c/src/tests/tools/hppa1_1/simhppa/Makefile \
365c/src/tests/tools/sparc/Makefile \
366c/src/tests/tools/sparc/erc32/Makefile \
367c/src/tests/tools/unix/Makefile \
368c/src/tests/tools/unix/posix/Makefile"
369
370dnl Checks for programs.
371AC_PROG_MAKE_SET
372AC_CANONICAL_SYSTEM
373AC_ARG_WITH(cross-host,[  --with-cross-host=HOST      host (cygnus)], \
374host=$withval)
375
376AC_ARG_ENABLE(posix, \
377[  --disable-posix                  disable posix interface], \
378RTEMS_HAS_POSIX_API=no,RTEMS_HAS_POSIX_API=yes)
379
380AC_ARG_ENABLE(rtems-inlines, \
381[  --disable-rtems-inlines          disable RTEMS inline functions (use macros)], \
382RTEMS_USE_MACROS=yes,RTEMS_USE_MACROS=no)
383
384RTEMS_PREFIX=${target_cpu}-${target_vendor}
385
386case "${target}" in
387  a29k-rtems*)
388        rtems_bsp=portsw
389        makefiles=$a29k_mk
390        ;;
391  # hpux unix port should go here
392  hppa1.1-rtems*)
393        rtems_bsp=simhppa
394        makefiles=$hppa1_1_mk
395        ;;
396  i[[3456]]86-go32-rtems*)
397        rtems_bsp="go32 go32_p5"
398        makefiles=$i386_go32_mk
399        RTEMS_HAS_POSIX_API=no
400        ;;
401  i[[3456]]86-rtems*)
402        rtems_bsp="force386 i386ex"
403        makefiles=$i386_mk
404        ;;
405  i[[3456]]86-pc-linux*)         # unix "simulator" port
406        rtems_bsp=posix
407        makefiles=$posix_mk
408        RTEMS_HAS_POSIX_API=no
409        ;;
410  i960-rtems*)
411        rtems_bsp=cvme961
412        makefiles=$i960_mk
413        ;;
414  m68k-rtems*)
415        rtems_bsp="efi332 gen68302 idp mvme147 mvme162 \
416           dmv152 efi68k gen68360 mvme136 mvme147s"
417        makefiles=$m68k_mk
418        ;;
419  mips64orion-rtems*)
420        rtems_bsp="p4600 p4650"
421        makefiles=$mips64orion_mk
422        ;;
423  no_cpu-rtems*)
424        rtems_bsp=no_bsp
425        makefiles=$no_cpu_mk
426        ;;
427  powerpc-rtems*)
428        rtems_bsp=papyrus
429        makefiles=$powerpc_mk
430        ;;
431  sparc-sun-solaris*)             # unix "simulator" port
432        rtems_bsp=posix
433        makefiles=$posix_mk
434        RTEMS_HAS_POSIX_API=no
435        ;;
436  sparc-rtems*)         
437        rtems_bsp=erc32
438        makefiles=$sparc_mk
439        ;;
440  *)                   
441        rtems_bsp=no_bsp
442        makefiles=$no_cpu_mk
443        echo Error: RTEMS is not supported on target: $target
444        exit 1
445        ;;
446esac
447
448case "${host}" in
449  *-pc-linux*)          host_os=Linux ;;
450  sparc-sun-sunos*)     host_os=SunOS ;;
451  sparc-sun-solaris*)   host_os=Solaris ;;
452  *-nextstep*)          host_os=Nextstep3;;
453  mips*-sgi-irix5*)     host_os=Irix5;;
454  *-hp-hpux9*)          host_os=HPUX9;;
455  *)                    host_os=none
456                        echo RTEMS not supported on host: $host
457                        exit 1;;
458esac
459
460if [[ "${program_prefix}" = "NONE" ]] ; then
461  if [[ "${target}" = "${host}" ]] ; then
462    program_prefix=
463  else
464    program_prefix=${target}-
465  fi
466fi
467
468
469AC_PROG_AWK
470AC_PROG_LN_S
471dnl AC_PROG_CC
472dnl AC_PROG_CXX
473
474RTEMS_BSP=$rtems_bsp
475RTEMS_HOST=$host_os
476RTEMS_ROOT=`cd $srcdir/c; pwd`
477PROJECT_ROOT=`pwd;`
478
479AC_ARG_ENABLE(tests, \
480[  --disable-tests                  disable tests], \
481tests_mk=,makefiles="${makefiles} ${tests_mk}")
482
483AC_ARG_ENABLE(rtemsbsp, \
484[  --enable-rtemsbsp=bsp1 bsp2 ..   prefix for cross-tools], \
485RTEMS_BSP=$enableval)
486
487AC_SUBST(RTEMS_BSP)
488AC_SUBST(RTEMS_HOST)
489AC_SUBST(RTEMS_LIBC_DIR)
490AC_SUBST(RTEMS_ROOT)
491AC_SUBST(RTEMS_HAS_POSIX_API)
492AC_SUBST(RTEMS_USE_MACROS)
493AC_SUBST(PROJECT_ROOT)
494AC_SUBST(program_prefix)
495
496AC_OUTPUT( Makefile \
497c/Makefile \
498c/build-tools/Makefile \
499c/build-tools/os/Makefile \
500c/build-tools/os/msdos/Makefile \
501c/build-tools/scripts/Makefile \
502c/build-tools/src/Makefile \
503c/make/Makefile \
504c/make/Templates/Makefile.inc \
505c/src/Makefile \
506c/src/exec/Makefile \
507c/src/exec/posix/Makefile \
508c/src/exec/posix/base/Makefile \
509c/src/exec/posix/headers/Makefile \
510c/src/exec/posix/inline/Makefile \
511c/src/exec/posix/macros/Makefile \
512c/src/exec/posix/optman/Makefile \
513c/src/exec/posix/src/Makefile \
514c/src/exec/posix/sys/Makefile \
515c/src/exec/rtems/Makefile \
516c/src/exec/rtems/headers/Makefile \
517c/src/exec/rtems/inline/Makefile \
518c/src/exec/rtems/macros/Makefile \
519c/src/exec/rtems/optman/Makefile \
520c/src/exec/rtems/src/Makefile \
521c/src/exec/sapi/Makefile \
522c/src/exec/sapi/headers/Makefile \
523c/src/exec/sapi/inline/Makefile \
524c/src/exec/sapi/macros/Makefile \
525c/src/exec/sapi/optman/Makefile \
526c/src/exec/sapi/src/Makefile \
527c/src/exec/score/Makefile \
528c/src/exec/score/cpu/Makefile \
529c/src/exec/score/headers/Makefile \
530c/src/exec/score/inline/Makefile \
531c/src/exec/score/macros/Makefile \
532c/src/exec/score/src/Makefile \
533c/src/exec/score/tools/Makefile \
534c/src/exec/score/tools/generic/Makefile \
535c/src/exec/wrapup/Makefile \
536c/src/exec/wrapup/posix/Makefile \
537c/src/exec/wrapup/rtems/Makefile \
538c/src/lib/Makefile \
539c/src/lib/include/Makefile \
540c/src/lib/libbsp/Makefile \
541c/src/lib/libbsp/shmdr/Makefile \
542c/src/lib/libc/Makefile \
543c/src/lib/libcpu/Makefile \
544c/src/lib/libmisc/Makefile \
545c/src/lib/libmisc/assoc/Makefile \
546c/src/lib/libmisc/error/Makefile \
547c/src/lib/libmisc/monitor/Makefile \
548c/src/lib/libmisc/stackchk/Makefile \
549c/src/lib/libmisc/wrapup/Makefile \
550c/src/lib/start/Makefile \
551c/src/lib/wrapup/Makefile \
552$makefiles \
553c/update-tools/Makefile )
554
555echo
556echo target architecture: $target_cpu.
557echo available BSPs: $rtems_bsp.
558echo \'make all\' will build the following BSPs: $RTEMS_BSP.
559echo other BSPs can be built with \'make RTEMSBSP=\"bsp1 bsp2 ...\"\'
560echo
Note: See TracBrowser for help on using the repository browser.