replace cmake with autotools