Edward Tomasz Napierala wrote: > It does not work, because it does not use the proper CFLAGS - this > is FreeBSD, includes live in /usr/local/include and it's neccessary > to pass -I/usr/local/include. > > So, the question is, how to modify the above macro to use CFLAGS it got > (or should got) from pkg-config, for example? Do the required flags from pkg-config eventually end up in CFLAGS at the end of configure? If they do then this sounds like simply an ordering problem -- the code that runs pkg-config and modifies CFLAGS should run before this AC_COMPILE_IFELSE. If they don't, then that's a separate problem that is unrelated to and should be solved outside of AC_COMPILE_IFELSE. In other words, the macro uses the current setting of CFLAGS; if CFLAGS needs things added to it, then it should be done before calling the macro. Brian _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf