xhprof: Execute aclocal and autoconf only if Gentoo is used.
Merge pull request #6320 from sabl0r/gentoo2

xhprof: Execute aclocal and autoconf only if Gentoo is used.