LCA: Disintermediating distributions
Posted Feb 7, 2008 0:01 UTC (Thu) by
vmole (guest, #111)
In reply to:
LCA: Disintermediating distributions by vapier
Parent article:
LCA: Disintermediating distributions
No, you can't get rid of them entirely, and Mr. Spencer doesn't claim you can. They were added to the language for a reason, after all. But all too much autoconf code has stuff like this:
#ifdef HAVE_INDEX
p = index(s, c)
#elif HAVE_STRCHR
p = strchr(s, c)
#endif
Yeah, that's a really old example, but while the names of the functions change, the style doesn't.
And while I'm at it, why do I still have to sit through messages like
Checking for C89...okay
Checking for stdio.h...found
Checking for strcpy()...found
...
Hey, if it's C89, then ALL THOSE FUNCTIONS AND HEADER FILES ARE THERE. If not, the implementation is broken WAY beyond what autoconf can solve.
And, not to go off on a rant (too late!), why do I have to sit through 3 minutes of autoconf masturbation just to go to a 3 second compile of 300 lines of standard C?
Yes, I know that isn't really autoconf's "fault". It can be used in reasonable ways. But the autoconf culture encourages such bad choices, because 95% of the users don't understand it and just copy other peoples' bad choices.
Feh.
(
Log in to post comments)