configure.in: use AC_CHECK_{FUNCS|HEADERS}_ONCE