configure: simplify $cpu handling for some architectures