Matthias Andree wrote:

The whole #ifdef approach is massively broken and prone to mis-guess.

It denies one of the most basic considerations, and that is: operating
systems change over time, and add features missing from earlier
versions.  Looking at the operating system is insufficient.

[snip]

Note I am not saying you need to use a fully-fledged autoconf approach,
lighter-weight alternatives have been seen in the wild, and possibly it
suffices - for FreeBSD - to have a separate header (.h) file that checks
the major FreeBSD version and #defines a few HAVE_SOMEFUNCTION or leaves
it #undef'd, so the actual code can then

That just means the cpp dancing is moved elsewhere.  Someone needs to
maintain that header, because OSes <quote> change over time </quote>.

on his hands, so some concept similar to autoconf might work in more
places with less human work and more machine work during the build.

I agree, autoconf is the best approach.  But *someone* needs to write
it.

-dborca
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to