Merge platform-specific AutoConfig.cpp's. Add documentation