source: rtems/aclocal/canonical-target-name.m4 @ 3907075f

4.104.114.84.95
Last change on this file since 3907075f was 37b5d78, checked in by Joel Sherrill <joel.sherrill@…>, on 09/14/01 at 17:30:22

2001-09-14 Ralf Corsepius <corsepiu@…>

  • aclocal/canonical-target-name.m4: Use AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
  • aclocal/config-subdirs.m4: Use AS_MKDIR_P instead of mkinstalldirs and mkdir.
  • aclocal/target.m4: Obsolete RTEMS_OUTPUT_BUILD_SUBDIRS, hack RTEMS_CONFIG_BUILD_SUBDIRS, introduce _RTEMS_OUTPUT_BUILD_SUBDIRS.
  • Property mode set to 100644
File size: 885 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[
13AC_CANONICAL_TARGET
14AC_MSG_CHECKING(rtems target cpu)
15case "${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        ;;
35esac
36AC_SUBST(RTEMS_CPU)
37AC_MSG_RESULT($RTEMS_CPU)
38])
Note: See TracBrowser for help on using the repository browser.