Adaptive wavelet estimation of a function from an m-dependent process with possibly unbounded m