Many important lessons learnt today. Firstly, that BSD sed inserts an extra newline when appending the hold space back to the pattern buffer; secondly, that autoconf doesn’t exactly make it easy to deal with different packaging and POSIX levels for time.h; thirdly, that POSIX failed and standards don’t work; fourthly, that Mac has buggy libstdc++; fifthly, that, as well as being a great injustice inflicted on the world by AT&T, the existence of GNU is a technical aberration; and sixth and lastly, I really should learn to do perl one-liners instead of my long sed command-lines anyway.