Polynomial splines on the real line