source: rtems/c/src/aclocal/canonical-target-name.m4 @ 39c37b3

4.104.115
Last change on this file since 39c37b3 was 39c37b3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 14, 2009 at 12:20:20 PM

Remove posix/unix.

  • Property mode set to 100644
File size: 609 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_HOST
14AC_MSG_CHECKING(rtems target cpu)
15case "${host}" in
16  no_cpu-*rtems*)
17        RTEMS_CPU=no_cpu
18        RTEMS_HOST=$host_os
19        ;;
20  *)
21        RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
22        RTEMS_HOST=$host_os
23        ;;
24esac
25AC_SUBST(RTEMS_CPU)
26AC_SUBST(RTEMS_HOST)
27AC_MSG_RESULT($RTEMS_CPU)
28])
Note: See TracBrowser for help on using the repository browser.