Merge "Don't run and check c-api if it is disabled"