--- a/src/Makevars.in
+++ b/src/Makevars.in
@@ -1,2 +1,2 @@
-PKG_CPPFLAGS=-I@JAGS_INCLUDE@ 
-PKG_LIBS=-L@JAGS_LIB@ -ljags @JAGS_RPATH@
+PKG_CPPFLAGS=-I@JAGS_PKGINCLUDEDIR@ 
+PKG_LIBS=-L@JAGS_LIBDIR@ -ljags @JAGS_RPATH@