#!/bin/sh

# $Id: chooseCompiler,v 1.2 1996/03/15 11:00:33 svein Exp $

########## Choose compiler ##########

if test "$confirm" -eq 1
then
	if test -z "$CC"
	then

cat <<EOF 1>&2

XITE has been built with various compilers. Unless you have particular
needs, we suggest that you use the GNU compiler gcc. This requires that
gcc is installed on your system.

You may optionally choose to use the system's own compiler cc.
Please indicate your choice.

EOF

		$echoNl "Use the GNU compiler gcc? ([y]/n) " 1>&2
		read ok

		if test "$ok" != "" -a "$ok" != "y" -a "$ok" != "Y" -a "$ok" != "yes" -a \
			"$ok" != "YES"
		then
			CC="cc"
		else
			CC="gcc"
		fi

		echo "CC=$CC; export CC"

	fi
fi
