4.104.115
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
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_HOST |
---|
14 | AC_MSG_CHECKING(rtems target cpu) |
---|
15 | case "${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 | ;; |
---|
24 | esac |
---|
25 | AC_SUBST(RTEMS_CPU) |
---|
26 | AC_SUBST(RTEMS_HOST) |
---|
27 | AC_MSG_RESULT($RTEMS_CPU) |
---|
28 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.