autoconf
[Top][All Lists]
Advanced

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

AC_CONFIG_HEADERS adding directory to -I


From: Tommi Mäkitalo
Subject: AC_CONFIG_HEADERS adding directory to -I
Date: Thu, 1 May 2008 15:40:21 +0200
User-agent: KMail/1.9.6

Hi,

I use AC_CONFIG_HEADERS to create 2 config.h-files. One is the normal config.h 
in my source directory and the other I have a config.h, which needs to be 
installed with my package. This installed config.h resides in a subdirectory, 
since it is not wise to create a /usr/local/include/config.h. My package name 
is cxxtools and I create a cxxtools/config.h using 
AC_CONFIG_HEADERS([include/cxxtools/config.h]).

The problem here is, that autoconf adds my directory include/cxxtools to the 
list of include files. I don't need that, since I always use 
<cxxtools/config.h> to refer to that installed config.h. The problem is, that 
I would like to add a new file "include/cxxtools/time.h" and include that 
with <cxxtools/time.h>. After adding that file, I have no chance to include 
the standard <time.h>, since the directory include/cxxtools is put into the 
list of compile flags and searched before the standard /usr/include.

Is there any way to prevent including that directory into my list of 
include-directories?

Tommi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]