4570b12
# Leaves path unchanged if icecc is already there.
4570b12
# If ccache is there, adds icecc _after_ it.
4570b12
# Otherwise adds icecc to the beginning.
89116ae
4570b12
if ( "$path" !~ *@LIBDIR@/icecc/bin* ) then
4570b12
	if ( "$path" !~ *@LIBDIR@/ccache* ) then
0c76fb9
		set path = ( @LIBDIR@/icecc/bin $path )
4570b12
	else
4570b12
		@ pos = 0
4570b12
		foreach item ( $path )
4570b12
			@ pos = $pos + 1
4570b12
			if ( $item == @LIBDIR@/ccache ) break
4570b12
		end
4570b12
		@ next_pos = $pos + 1
4570b12
		set path = ( $path[1-$pos] @LIBDIR@/icecc/bin \
4570b12
			$path[$next_pos-])
4570b12
		unset next_pos
4570b12
		unset pos
4570b12
		unset item
4570b12
	endif
8d4b890
endif