source: rtems/contrib/crossrpms/acinclude.m4 @ 32c58e1

4.104.115
Last change on this file since 32c58e1 was 3ab5794, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/05/06 at 08:36:52

New.

  • Property mode set to 100644
File size: 538 bytes
Line 
1# RTEMS_CANONICAL_SPLIT(THING)
2# --------------------------
3# Generate the variables THING, THING_{alias cpu vendor os}.
4m4_define([RTEMS_CANONICAL_SPLIT],
5[case $ac_cv_$1 in
6*-*-*) ;;
7*) AC_MSG_ERROR([invalid value of canonical $1]);;
8esac
9ac_save_IFS=$IFS; IFS='-'
10set x $ac_cv_$1
11shift
12$1_cpu=$[1]
13$1_vendor=$[2]
14shift; shift
15[# Remember, the first character of IFS is used to create $]*,
16# except with old shells:
17$1_os=$[*]
18IFS=$ac_save_IFS
19case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac
20])# RTEMS_CANONICAL_SPLIT
Note: See TracBrowser for help on using the repository browser.