added --check to configure