The first jack-o-lanterns were carved from turnips, not pumpins. Here's a link to a modern retelling of the legend from which they're derived:
http://www.geocities.com/SoHo/Studios/9526/fable018.htm
http://www.geocities.com/SoHo/Studios/9526/fable018.htm