configure: Use previous header checks for #ifdefs