On special values of certain automorphic $L$-functions