Calculating the configuration fuses for microcontrollers is always a pain. Many programming environments can do this for you, but in case yours doesn’t, here’s a handy fuse calculator for calculating the fuses on Atmel’s AVR microcontrollers.
Thanks to Zach Eveland for the link.