[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About AC_CHECK_HEADERS and different locations
From: |
Eric Blake |
Subject: |
Re: About AC_CHECK_HEADERS and different locations |
Date: |
Tue, 28 Sep 2010 07:55:03 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 |
On 09/27/2010 09:13 PM, Sergio Belkin wrote:
Hi,
I am autoconfiscating a project that has a header file with a line:
#include<postgresql/libpq-fe.h>
configure.ac has:
AC_CHECK_HEADERS(postgresql/libpq-fe.h)
Please get in the habit of correct m4 quoting:
AC_CHECK_HEADERS([postgresql/libpq-fe.h])
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.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org