The GNU configure and build system - Configuration Names:
include
AC_CANONICAL_HOST
in configure.in and use the following to check for host
case "${host}" in
i[3456]86-*-linux-gnu*) do something ;;
sparc*-sun-solaris2.[56789]*) do something ;;
sparc*-sun-solaris*) do something ;;
mips*-*-elf*) do something ;;
esac