4.104.114.84.95
Last change
on this file since f26145b was
3da33bf8,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/20/03 at 07:02:53
|
2003-11-20 Ralf Corsepius <corsepiu@…>
- acinclude.m4: New.
- configure.ac: Don't use AUTOHEADER to generate cpuopts.h.
Add local autoheader config.h.
- aclocal/canonical-target-name.m4: Require AC_CANONICAL_HOST.
- aclocal/enable-inlines.m4: Remove USE_MACROS (Unused).
|
-
Property mode set to
100644
|
File size:
963 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 | [AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
13 | AC_MSG_CHECKING(rtems target cpu) |
---|
14 | case "${host}" in |
---|
15 | # hpux unix port should go here |
---|
16 | i[[34567]]86-*linux*) # unix "simulator" port |
---|
17 | RTEMS_CPU=unix |
---|
18 | ;; |
---|
19 | i[[34567]]86-*freebsd*) # unix "simulator" port |
---|
20 | RTEMS_CPU=unix |
---|
21 | ;; |
---|
22 | i[[34567]]86-pc-cygwin*) # Cygwin is just enough unix like :) |
---|
23 | RTEMS_CPU=unix |
---|
24 | ;; |
---|
25 | no_cpu-*rtems*) |
---|
26 | RTEMS_CPU=no_cpu |
---|
27 | ;; |
---|
28 | sparc-sun-solaris*) # unix "simulator" port |
---|
29 | RTEMS_CPU=unix |
---|
30 | ;; |
---|
31 | tic4x-*rtems*) # gcc changed the name |
---|
32 | RTEMS_CPU=c4x |
---|
33 | ;; |
---|
34 | *) |
---|
35 | RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'` |
---|
36 | ;; |
---|
37 | esac |
---|
38 | AC_SUBST(RTEMS_CPU) |
---|
39 | AC_MSG_RESULT($RTEMS_CPU) |
---|
40 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.