ghc bindist configure doesn't work on 9.2.6 Arm64 mac with any nonstandard config. Or: configure ignores CC and always picks gcc, no mwatter what
## Summary
i'd expect `> ./configure --prefix=/Users/carter/.ghc_install/ghc_9.2.6_hq --disable-ld-override CC=(which gcc-12) CPP=(which gcc-12)
`
to work, since i have Gcc-12 install on my mac. instead I get configure failures, or to make things even more insane
`> ./configure --prefix=/Users/carter/.ghc_install/ghc_9.2.6_hq --disable-ld-override CC=(which gcc-12) `
doesn't fail, but when I look at the settings file which *should be generated from this*, i see `,("C compiler command", "gcc")
`
rather than the expected `/opt/homebrew/bin/gcc-12`
Configure step of a bindist *must* use CC, CPP, CXX etc, and *must* generate the settings file. It seems that it doesn't.
I believe this issue likely also is the culprit for problems i've had installing ghc 9.4.x versions too
heres links to example configure runs https://www.irccloud.com/pastebin/WhqTTd5p/
and associated config.log https://www.irccloud.com/pastebin/nHchjYDl/
do note that my tiny shell examples are using `fish shell`, but as you can see from the pastes, the substitutions work correctly there
* Operating System: OSX, ARM, but should be a problem on all other platforms. I just am more likely than most to swap my C compilers around
issue