  We obtain restrictions on the rational homotopy types of mapping spaces and
of classifying spaces of homotopy automorphisms by means of the theory of
positive weight decompositions. The theory applies, in particular, to connected
components of holomorphic maps between compact K\"ahler manifolds as well as
homotopy automorphisms of K\"ahler manifolds.
