Hello Akim, * Akim Demaille wrote on Sun, Oct 22, 2006 at 01:10:02PM CEST: > >What would be the cleanest means to handle this exception? > > Here is what I did:
I think it's much better to do the munging in configure.ac. Store the CFLAGS set by the user and/or AC_PROG_CC in AM_CFLAGS, and override CFLAGS. Depending upon whether the changed flags settings apply to only a few, non-portability-problematic files in your project, the rest of the configure tests should run with the flags set by the user, and you should only override at the end, or the converse. Much cleaner, involves much less changes. If you have something that works nicely and is reasonably generally useful, post a summary, or even better, a FAQ addition to the manual. ;-) Cheers, Ralf
