#
# 0. Figure out architecture (one of i386, alpha, sparc, arm, m68k, mips)
ARCH=`uname -m | sed s/i.86/i386/`
HOST_ARCH=`uname -m`
echo "ARCH=$ARCH" >> make_include
TARGET_ARCH=`$CC -dumpmachine | awk -F- '{print $1}'`
# Don't allow ARCH="sparc" for sparc64 targets with 32-bit userland
if (test "$HOST_ARCH" = "sparc64" && test "$TARGET_ARCH" = "sparc") ; then
TARGET_ARCH="sparc64"
fi
echo "ARCH=${TARGET_ARCH/i?86/i386}" >> make_include
# 1. Do we have <locale.h>?