if i'm not misleaded, the line: if [ "`gcc-version`" != "2.95" ] should read as if [ "`gcc --version`" != "2.95" ]
the gcc-version function is defined in /usr/portage/eclass/gcc.eclass which the xfree ebuild inherits.