Hi,
	I am writing a package which requires the ANN(Approx N.Neighbors)  
library (found here http://www.cs.umd.edu/~mount/ANN/).
	My package directory looks something like this

	atry/
	atry/src/ann/   <--ann source is here
	atry/src/ann/include
	atry/src/ann/lib <--ann lib file is here
	atry/src/disp.cpp < my file which requires the ann lib

	The last file disp.cpp has the include line

	include "ann/ann.h"

	How do i modify the R CMD INSTALL process so that i can
	1) build the ann library
	2) provides include paths and lib paths to the R CMD INSTALL process  
so that atry/src/disp.cpp (my program)  can locate the libs and  
header files and succesfully compile.
	I tried using Makevars (in the src folder) and adding a INCPATH and  
LIBS= however that didn't work - the compilation didn't take into  
account the modified INCPATH.

	Any pointers would be much appreciated.
	I'm doing this on my machine only (for the moment), so rough and  
ready techniques (i.e no need for autoconf features) would be helpful.
	Thank you in advance.

	
Saptarshi Guha | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha



	[[alternative HTML version deleted]]

