Re: About AC_CHECK_HEADERS and different locations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Sep 2010, Eric Blake wrote:

On 09/27/2010 09:13 PM, Sergio Belkin wrote:

The problem is that Ubuntu has such a header file on
/usr/include/postgresq  but fedora has it on  /usr/include. So how can
I make that configure script checks  for differents paths?

By altering CFLAGS (either by the user as command-line arguments to ./configure, or in your configure.ac while being careful to honor the user's additional CFLAGS settings) to include the correct -I compiler options prior to your AC_CHECK_HEADERS use.

Hi,

this actually ought to be CPPFLAGS instead of CFLAGS (and will then
automatically apply to C as well as C++).

Regards
Peter Breitenlohner <peb@xxxxxxxxxxxx>

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux