#!/bin/sh
#
#  MathLink compiler command file
#  Copyright 1988-2003 Wolfram Research, Inc.

#  Make certain that ${PATH} includes /usr/bin and /bin
PATH="/usr/bin:/bin:${PATH}"

#  Determine $TopDirectory
TopDirectory="/usr/share/mathematica"


MCCPath="AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions"
MathLinkCC="${TopDirectory}/${MCCPath}/mcc"
if [ ! -x "${MathLinkCC}" ]; then
	fail=1
	continue
else
	fail=0
	break
fi


if [ ! "${fail}" = "0" ]; then
	echo "MathLink Developers Kit not found. Check that you have"
	echo "installed the MathLink Developers kit for the system"
	echo "you are running on."
 	exit 1
fi

exec "${MathLinkCC}" "$@"
