Draft: Move RTS-specific checks into rts configure script

Open Ben Gamari requested to merge wip/rts-configure-2 into master

This is another attempt at what @Ericson2314 started in !6803, fixing #17191.

Merge request reports