configure.ac: Add an #ifdef around VFP2 check

This makes the check work when building a universal binary for e.g.
ARMv7 and ARM64.