# AX_CANONICAL_SPLIT(THING,CANNONICAL_STRING)
# --------------------------
# Generate the variables THING, THING_{alias cpu vendor os}.
AC_DEFUN([AX_CANONICAL_SPLIT],
*) AC_MSG_ERROR([invalid value of canonical $2]);;
ac_save_IFS=$IFS; IFS='-'
AC_SUBST([$1_cpu], [$[1]])dnl
AC_SUBST([$1_vendor], [$[2]])dnl
[# Remember, the first character of IFS is used to create $]*,
# except with old shells:
case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac
linux*) $1_osname=linux;;
darwin*) $1_osname=darwin;;