Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does autoconf's AC_CHECK_HEADERS verify the header files?

I am having trouble with compiling one of the open source libraries (libopekele OpenID lib).

The problem is I don't have sudo access on the system where I need to compile this.

Ran the configure. It complained of missing htmltidy lib. Installed the htmltidy at a non-standard path /home/geekgod (as I dont have access to the /usr and /usr/local).

Now the problem is how do I make the configure script of libopekele to pick the the headers from /home/geekgod/include.

Poking into the configure.ac script of libopkele, it is using AC_CHECK_HEADERS to search for tidy.h or tidy/tidy.h. I am pretty sure it is looking for these at standard location (/usr/include). How do I add /home/geekgod to the standard include dir?

like image 684
rajeshnair Avatar asked Feb 09 '11 03:02

rajeshnair


People also ask

Where are the header files stored?

The angle brackets (<>) cause the preprocessor to search for the header file in the standard place for header files on your system, usually the /usr/include directory.

What is the point of header files?

The primary purpose of a header file is to propagate declarations to code files. Header files allow us to put declarations in one location and then import them wherever we need them. This can save a lot of typing in multi-file programs.


1 Answers

try this:

./configure CPPFLAGS=-I/home/geekgod/include --prefix=... --etc
like image 125
zwol Avatar answered Oct 17 '22 08:10

zwol