#!/bin/sh
#$Id: smirc.sh,v 1.1 1998/06/30 04:09:09 mrsam Exp $
#
#  Try first smirc-dynamic, then smirc-static, whichever one is available
#

if test "`dirname $0`" != "."
then
	test -x $0-dynamic && exec $0-dynamic $*
	test -x $0-static && exec $0-static $*
else
	for dir in `echo $PATH | tr ':' ' '`
	do
		test "$dir" = "" && dir="."
		test -x $dir/$0-dynamic && exec $dir/$0-dynamic $*
		test -x $dir/$0-static && exec $dir/$0-static $*
	done
fi
echo "$0-dynamic: file not found."
exit 1
