Hey Grave, the M cars and the 540's used the larger diameter ring gear units in our E34s. I think you can change the brackets to a 540 car and get it to physically fit but you may have other problems such as the input driveshaft is probably different along with the side outputs...It might be possible but would be a lot easier to get the right unit in the first place (which may also need the in/outputs swapped) The bigger unit you will be limited as there isnt a bunch of different ones and you cant use yours (input/output flanges) on it either.
95 E34 530I V2.37
===========
Those who make peaceful revolution impossible will make violent revolution inevitable.
John F. Kennedy