configure: test not just compiling but linking with -march/-mtune