Your 4 cylinder transfer case's 21 spline input shaft will very likely have to be changed. to a 23 spline to fit a the usual Jeep 6 cylinder transmissions that have 23 spline output shafts. But without knowing exactly what 6 cylinder transmission, it's hard to say for 100% sure.