OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [aclocal/] [canonical-target-name.m4] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl
2
dnl canonical-target-name.m4,v 1.1 2002/06/17 08:52:47 ralf Exp
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_CANONICAL_TARGET
14
AC_MSG_CHECKING(rtems target cpu)
15
case "${target}" in
16
  # hpux unix port should go here
17
  i[[34567]]86-*linux*)         # unix "simulator" port
18
        RTEMS_CPU=unix
19
        ;;
20
  i[[34567]]86-*freebsd*)       # unix "simulator" port
21
        RTEMS_CPU=unix
22
        ;;
23
  i[[34567]]86-pc-cygwin*)      # Cygwin is just enough unix like :)
24
        RTEMS_CPU=unix
25
        ;;
26
  no_cpu-*rtems*)
27
        RTEMS_CPU=no_cpu
28
        ;;
29
  sparc-sun-solaris*)           # unix "simulator" port
30
        RTEMS_CPU=unix
31
        ;;
32
  *)
33
        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
34
        ;;
35
esac
36
AC_SUBST(RTEMS_CPU)
37
AC_MSG_RESULT($RTEMS_CPU)
38
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.