The 2.8L, 3.1L, 3.4L, 3100, 3400 and 3500 (Non ShortStar) are all the same engine. 3.1 is a stroked 2.8L, the 3.4L is a bored 3.1L, etc. The 3100, 3400 designations are the revised engines, they often don't have a huge amount of interchangability to the older engines on things like intakes and sensors. But the hard pars should all work. If you have a 3100 now, a 3400 should bolt in with little or no issues at all. I know a guy with a 3.4L in a X11 Citation. Works well for him. Looks stock except for the Holley 500 CFM 2BBL on a heavily modded intake.
The ECM should care less. There should be enough bandwidth to handle the larger engine assuming all sensors are the same. With the 3400, it should come with larger injectors, that should be more than enough to keep the ECM happy.
Me? Go 3800 Series II. Much more fun than a wimpy 3400! 205 hp, 225 lb ft torque.... But lots more work, and a much tighter fit. But the old 3300 in the GA's were the same basic family (
Buick) as the 3800, so I know it WILL fit in there. But you need to have a 4T60E trans, the 4T40 likely won't live long. I know very little on the 4T40. I think they are very similar though.