source:
rtems/aclocal/canonical-target-name.m4
@
9078e097
Last change on this file since 9078e097 was 3959276e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 05:32:03 | |
---|---|
|
|
File size: 956 bytes |
Rev | Line | |
---|---|---|
[b931d05a] | 1 | dnl |
[6c77bba] | 2 | dnl $Id$ |
[b931d05a] | 3 | dnl |
[6c77bba] | 4 | |
[dfe7746e] | 5 | dnl canonicalize target cpu |
[6c77bba] | 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 | ||
[3959276e] | 11 | AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU], |
[dfe7746e] | 12 | [ |
[37b5d78] | 13 | AC_CANONICAL_TARGET |
[dfe7746e] | 14 | AC_MSG_CHECKING(rtems target cpu) |
[8c92fa3] | 15 | case "${target}" in |
[dfe7746e] | 16 | # hpux unix port should go here |
[a86c171] | 17 | i[[34567]]86-*linux*) # unix "simulator" port |
[15aa5ffb] | 18 | RTEMS_CPU=unix |
[dfe7746e] | 19 | ;; |
[a86c171] | 20 | i[[34567]]86-*freebsd*) # unix "simulator" port |
[df49c60] | 21 | RTEMS_CPU=unix |
22 | ;; | |
[a86c171] | 23 | i[[34567]]86-pc-cygwin*) # Cygwin is just enough unix like :) |
[15aa5ffb] | 24 | RTEMS_CPU=unix |
[dfe7746e] | 25 | ;; |
26 | no_cpu-*rtems*) | |
[15aa5ffb] | 27 | RTEMS_CPU=no_cpu |
[dfe7746e] | 28 | ;; |
29 | sparc-sun-solaris*) # unix "simulator" port | |
[15aa5ffb] | 30 | RTEMS_CPU=unix |
[dfe7746e] | 31 | ;; |
[6b2b4a36] | 32 | tic4x-*rtems*) # gcc changed the name |
33 | RTEMS_CPU=c4x | |
34 | ;; | |
[dfe7746e] | 35 | *) |
[a86c171] | 36 | RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'` |
[dfe7746e] | 37 | ;; |
38 | esac | |
[d2d22780] | 39 | AC_SUBST(RTEMS_CPU) |
[15aa5ffb] | 40 | AC_MSG_RESULT($RTEMS_CPU) |
[6c77bba] | 41 | ]) |
Note: See TracBrowser
for help on using the repository browser.