On 07/08/2012 05:32 PM, Reuben Thomas wrote: > I'm not (intentionally) assuming that I'm using gcc; can I do > this more portably?
Here's what Emacs does for a similar situation: at configure-time it sees whether it's using GCC and is being asked to compile with diagnostics turned on, and if so it arranges to use -isystem rather than -I. This appears to be portable enough. It's not quite same situation, since the headers in question are from random 3rd-party libraries rather than being from gnulib, but the same idea should work with gnulib.