Re: Problem locating include file
Wan-Teh Chang <[email protected]> Thu, 19 Mar 2009 09:10:34 -0700
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 13, 2009 at 10:25 AM, Jon Leighton <[email protected]> wrote: > I'm working with NSPR on Windows XP, using MozillaBuild 1.3 and Visual > Studio 2005. I've added a check to the configure script using > AC_DEFUN[...], and the check tries to compile and run a small piece of code. > I'm having trouble telling the compiler how to find one of the include > files needed for the code. > > I've set CPPFLAGS to specify the include directory using the -I compiler > option, but for some reason the compiler still can't find the file. The > only way I've been able to get it to work is either to place the include > file in the same directory from which I'm running the configure script, or > to add the include file's path to the INCLUDE environment variable. > > Is there some way to get the -I option to work as expected? Thanks for any > help. I'm not good at autoconf programming, so I don't know how to solve this problem. Sorry! Looking at nsprpub/configure.in, I only see CPPFLAGS used in AC_DEFUN(MOZ_CHECK_PTHREADS, whereas CFLAGS is used in many places (search for "_SAVE_CFLAGS=$CFLAGS"). You can email Ted Mielczarek for help (I don't think he reads this newsgroup): http://www.mozilla.org/owners.html#nspr Wan-Teh