configure.in: use specialize REPLACE_FUNCS