You have to have some sort of external reference, or there's no way to determine the xtal speed. Even comparing to the WDT osc is pretty sloppy, and of course that assumes a lot of code to make that determination.
If I were you, I'd put some flag in the program space like "CLK=4.00" as a constant when you compile. Maybe even just a few bits if your options are limited.
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list