 Harold Ramis (qv) says that his characters name was built from  two parts. The first name (Egon) was taken from a Hungarian refugee  he went to grammar school with, and Spengler was from historian  Oswald Spengler.