Total synthesis of (+)- and (-)-sundiversifolide via intramolecular acylation and determination of the absolute configuration.