configure.ac: print deprecation warning as needed