|
From: | Ralf Corsepius |
Subject: | Re: Search for an header file in different paths |
Date: | Tue, 18 Oct 2011 16:49:10 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Thunderbird/3.1.15 |
On 10/18/2011 04:26 PM, Alessandro Candini wrote:
Before upgrading my Ubuntu linux to 11.10 version, I had gdal.h under /usr/local/include: configure and make succeed without errors. Now I have it under /usr/include/gdal and I get that gdal.h cannot be found (in my source files there is a simple "#include <gdal.h>").
<path>/configure CPPFLAGS=-I/usr/include/gdal
How can I manage the two cases in the same configure.ac: system in which gdal.h is in /usr/include and others in which it is in /usr/local/include?
c.f. above. Leave passing include-paths to your users. Only he knows (rsp. he is supposed to know) where a package's headers are installed.
A package's author can't know where his package's users may have installed the package's headers into.
Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |