#!/bin/sh
PLATFORM_ARCH=`arch -k`
case "$PLATFORM_ARCH" in
	sun4*)
		echo "Configuring for a SPARC"
		if [ -f Makefile ]; then
		    rm Makefile
		fi
		ln -s Makefile.solaris26 Makefile
	;;
	i*86)
		echo "Got platform as $PLATFORM_ARCH"
		echo "Configuring for a Linux/x86 machine"
		if [ -f Makefile ]; then
		    rm Makefile
		fi
		ln -s Makefile.linux Makefile
	;;
esac
