configure: pass extra flags to check_cpp from check_cpp_condition