If using the porcini, soak them in warm water to cover for 15 minutes, then drain. Discard the stems and slice the caps.
Heat the oil in a pan and fry the onion, celery, carrot and garlic for 10 minutes until the onion is soft and translucent. Add the prosciutto or bacon, stir and cook over low heat for 4 minutes.