source: rtems/cpukit/aclocal/canonical-target-name.m4 @ 4ff2c04

4.104.115
Last change on this file since 4ff2c04 was 4ff2c04, checked in by Joel Sherrill <joel.sherrill@…>, on 09/10/08 at 15:35:28

2008-09-10 Joel Sherrill <joel.sherrill@…>

  • configure.ac, aclocal/canonical-target-name.m4, score/cpu/Makefile.am: Remove TI C4x and NIOS2 ports from 4.9 branch.
  • score/cpu/c4x/.cvsignore, score/cpu/c4x/ChangeLog, score/cpu/c4x/Makefile.am, score/cpu/c4x/cpu.c, score/cpu/c4x/cpu_asm.S, score/cpu/c4x/irq.c, score/cpu/c4x/preinstall.am, score/cpu/c4x/rtems/asm.h, score/cpu/c4x/rtems/score/c4x.h, score/cpu/c4x/rtems/score/cpu.h, score/cpu/c4x/rtems/score/cpu_asm.h, score/cpu/c4x/rtems/score/types.h, score/cpu/c4x/rtems/tic4x/c4xio.h, score/cpu/nios2/.cvsignore, score/cpu/nios2/ChangeLog, score/cpu/nios2/Makefile.am, score/cpu/nios2/cpu.c, score/cpu/nios2/cpu_asm.S, score/cpu/nios2/irq.c, score/cpu/nios2/preinstall.am, score/cpu/nios2/rtems/asm.h, score/cpu/nios2/rtems/score/cpu.h, score/cpu/nios2/rtems/score/cpu_asm.h, score/cpu/nios2/rtems/score/nios2.h, score/cpu/nios2/rtems/score/types.h: Removed.
  • Property mode set to 100644
File size: 894 bytes
Line 
1dnl
2dnl $Id$
3dnl
4
5dnl canonicalize target cpu
6dnl NOTE: Most rtems targets do not fullfil autoconf's
7dnl target naming conventions "processor-vendor-os"
8dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
9dnl and we have to fix it for rtems ourselves
10
11AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
12[AC_REQUIRE([AC_CANONICAL_HOST])
13AC_MSG_CHECKING(rtems target cpu)
14case "${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  *)
32        RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
33        ;;
34esac
35AC_SUBST(RTEMS_CPU)
36AC_MSG_RESULT($RTEMS_CPU)
37])
Note: See TracBrowser for help on using the repository browser.