An inline 6 would be quite difficult. They are significantly longer than a v8. For a 4 wheel drive, you would probably want to do an engine/transmission/transfer case that all bolt together. Then modify the driveshafts to fit the new transfer case.