source: rtems-schedsim/aclocal/canonical-target-name.m4 @ fa45079

Last change on this file since fa45079 was 40cadee, checked in by Joel Sherrill <joel.sherrill@…>, on 05/01/13 at 00:33:31

aclocal/*.m4: Update from RTEMS

  • Property mode set to 100644
File size: 534 bytes
Line 
1dnl canonicalize target cpu
2dnl NOTE: Most rtems targets do not fullfil autoconf's
3dnl target naming conventions "processor-vendor-os"
4dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
5dnl and we have to fix it for rtems ourselves
6
7AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
8[
9AC_CANONICAL_TARGET
10AC_MSG_CHECKING(rtems target cpu)
11case "${target}" in
12  no_cpu-*rtems*)
13        RTEMS_CPU=no_cpu
14        ;;
15  *)
16        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
17        ;;
18esac
19AC_SUBST(RTEMS_CPU)
20AC_MSG_RESULT($RTEMS_CPU)
21])
Note: See TracBrowser for help on using the repository browser.