Alex Rivera | Logout

How to specify include directory for configure script

Asked 2010-10-18T12:03:28.127
26

I have a linux system at my workplace with pretty old packages and no root access. I'm compiling packages that I need from source with --prefix=[somewhere in homedir]. My problem is that I just can't find out how to convince configure to look for header files in a specific directory. The source is cpp. I tried with environment variables related to g++ and looking up flags and googling but I had no success. Can someone help me solve this?

Edit
Report

1 Answer

10

It's better to use CPPFLAGS to specify include directories.

./configure CPPFLAGS="-I/your/whatever/includedir"
answered 2011-10-22T19:48:42.490

Your Answer