4.104.114.84.95
Last change
on this file since 1105818d was
dfe7746e,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/17/99 at 23:43:32
|
Patch from Ralf Corsepius <corsepiu@…>
|
-
Property mode set to
100644
|
File size:
919 bytes
|
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | |
---|
5 | dnl canonicalize target cpu |
---|
6 | dnl NOTE: Most rtems targets do not fullfil autoconf's |
---|
7 | dnl target naming conventions "processor-vendor-os" |
---|
8 | dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them |
---|
9 | dnl and we have to fix it for rtems ourselves |
---|
10 | |
---|
11 | AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU, |
---|
12 | [ |
---|
13 | AC_REQUIRE([AC_CANONICAL_SYSTEM]) |
---|
14 | AC_MSG_CHECKING(rtems target cpu) |
---|
15 | changequote(,)dnl |
---|
16 | case "${target}" in |
---|
17 | # hpux unix port should go here |
---|
18 | i[3456]86-go32-rtems*) |
---|
19 | target_cpu=i386 |
---|
20 | ;; |
---|
21 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
22 | target_cpu=unix |
---|
23 | ;; |
---|
24 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
25 | target_cpu=unix |
---|
26 | ;; |
---|
27 | no_cpu-*rtems*) |
---|
28 | target_cpu=no_cpu |
---|
29 | ;; |
---|
30 | ppc*-*rtems*) |
---|
31 | target_cpu=powerpc |
---|
32 | ;; |
---|
33 | sparc-sun-solaris*) # unix "simulator" port |
---|
34 | target_cpu=unix |
---|
35 | ;; |
---|
36 | *) |
---|
37 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
38 | ;; |
---|
39 | esac |
---|
40 | changequote([,])dnl |
---|
41 | AC_MSG_RESULT($target_cpu) |
---|
42 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.