#!/bin/sh
if [ ! -x /usr/bin/c++ ]; then
	echo Error: compiler c++ does not exist. >&2
	exit 127
fi
PATH=/usr/bin:$PATH
if [ -f /etc/sysconfig/ccache ]; then
	. /etc/sysconfig/ccache
	if [ "$USE_CCACHE_WITH_ICECREAM" = "yes" ]; then
	PATH=/usr/lib64/icecc/bin:$PATH
	fi
fi

ccache c++ "$@"
