Most of the stuff that configure scripts check is obsolete, and breaks in situations like this as the checks are often not workable without running code.
It is likely the check does not apply to any system that has existed for decades. Lots of systems have disabled eg Nix in 2017 [1]
[1] https://github.com/NixOS/nixpkgs/commit/dff0ba38a243603534c9...
replies(1):