Will a 1998 Jeep Grand Cherokee 5.2 engine bolt up the trans of a comparable model that has a 4.0 instead?

i'd suggest going ahead and atleast dropping in a 44re, if not a nv4500 (if you can do a 5-sp) the tranny's are weak enough, go ahead and spend the money now, while you putting in a new engine