source: rtems/aclocal/canonical-target-name.m4 @ 78ffe89

4.104.114.84.95
Last change on this file since 78ffe89 was 78ffe89, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/99 at 15:50:20

Patch from Ralf Corsepius <corsepiu@…>

Removed all go32 configuration tests.

This patch also comments out some special treatment for Cygwin from
*.m4 macros. According to reports from David Fiddes. these should
not be necessary anymore.

  • Property mode set to 100644
File size: 833 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_SYSTEM
14AC_MSG_CHECKING(rtems target cpu)
15changequote(,)dnl
16case "${target}" in
17  # hpux unix port should go here
18  i[3456]86-pc-linux*)          # unix "simulator" port
19        RTEMS_CPU=unix
20        ;;
21  i[3456]86-*freebsd2*)         # unix "simulator" port
22        RTEMS_CPU=unix
23        ;;
24  no_cpu-*rtems*)
25        RTEMS_CPU=no_cpu
26        ;;
27  sparc-sun-solaris*)           # unix "simulator" port
28        RTEMS_CPU=unix
29        ;;
30  *)
31        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
32        ;;
33esac
34changequote([,])dnl
35AC_SUBST(RTEMS_CPU)
36AC_MSG_RESULT($RTEMS_CPU)
37])
Note: See TracBrowser for help on using the repository browser.