arch detection in a configure script

Found by lofi in kdemultimedia:

AC_MSG_CHECKING(machine architecture)
AC_SUBST(ARCH_TYPE)
ARCH_TYPE=`uname -m`
if test `uname -s` = "FreeBSD"
then
HW_MODEL=`sysctl -n hw.model`
case "$HW_MODEL" in
"Pentium II/Pentium II Xeon/Celeron")
ARCH_TYPE="i686"
;;
esac
fi;
AC_MSG_RESULT($ARCH_TYPE)

*rotfl*