4.115
Line | |
---|
1 | dnl canonicalize target cpu |
---|
2 | dnl NOTE: Most rtems targets do not fullfil autoconf's |
---|
3 | dnl target naming conventions "processor-vendor-os" |
---|
4 | dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them |
---|
5 | dnl and we have to fix it for rtems ourselves |
---|
6 | |
---|
7 | AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU], |
---|
8 | [AC_REQUIRE([AC_CANONICAL_HOST]) |
---|
9 | AC_MSG_CHECKING(rtems target cpu) |
---|
10 | case "${host}" in |
---|
11 | *-*-rtems*) |
---|
12 | RTEMS_CPU="$host_cpu";; |
---|
13 | *) |
---|
14 | ;; |
---|
15 | esac |
---|
16 | AS_IF([test -n "$RTEMS_CPU"], |
---|
17 | [dnl |
---|
18 | AC_MSG_RESULT($RTEMS_CPU)], |
---|
19 | [dnl |
---|
20 | AC_MSG_RESULT([<none>]) |
---|
21 | AC_MSG_ERROR([unsupported host $host])]) |
---|
22 | AC_SUBST(RTEMS_CPU) |
---|
23 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.