The eudev project launches
The eudev project launches
Posted Dec 20, 2012 4:14 UTC (Thu) by nevets (subscriber, #11875)In reply to: The eudev project launches by mezcalero
Parent article: The eudev project launches
Maybe you should have a look at the Linux kernel. It's probably the most configurable project that ever existed. The kernel has matured where we don't have lots of #ifdef HAVE_xxx in the .c sources. We do put them into the .h files, where a static inline may act differently depending on the configs set. It's actually quite an elegant solution.
I based my Makefile for trace-cmd and kernelshark partially off of the Linux kbuild system. It's much more versatile and easier to understand than autoconf. I should work on making the kbuild system available for other projects as well. Package it up and reuse it.
Yes, we don't test all the different config options either, but you test what you ship. If someone finds a set of options that break, it's not that difficult (or time consuming) to fix it. I know this from experience as well.
I left off 'c)' because it was entirely an opinion, and not a technical issue at all.
