Mean-square estimate of automorphic L-functions