-I$(top_srcdir)/lib/ingraphs \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/cgraph \
- -I$(top_srcdir)/lib/cdt
+ -I$(top_srcdir)/lib/cdt \
+ -DDFLT_GVPRPATH="\".$(PATH_SEPARATOR)$(pkgdatadir)/gvpr\""
pkginclude_HEADERS = gvpr.h
noinst_PROGRAMS = mkdefs
#include <getopt.h>
#endif
-#define DFLT_GPRPATH "."
+#ifndef DFLT_GVPRPATH
+#define DFLT_GVPRPATH "."
+#endif
#define GV_USE_JUMP 4
/* resolve:
* Translate -f arg parameter into a pathname.
* If arg contains '/', return arg.
- * Else search directories in GPRPATH for arg.
+ * Else search directories in GVPRPATH for arg.
* Return NULL on error.
*
* FIX - use pathinclude/pathfind
#endif
return strdup(arg);
- path = getenv("GPRPATH");
+ path = getenv("GVPRPATH");
+ if (!path)
+ path = getenv("GPRPATH"); // deprecated
if (!path)
- path = DFLT_GPRPATH;
+ path = DFLT_GVPRPATH;
if (!(fp = sfstropen())) {
error(ERROR_ERROR, "Could not open buffer");
}
if (!fname)
- error(ERROR_ERROR, "Could not find file \"%s\" in GPRPATH", arg);
+ error(ERROR_ERROR, "Could not find file \"%s\" in GVPRPATH", arg);
sfclose(fp);
return fname;
int rv = 0;
options* opts = 0;
int cleanup, i, incoreGraphs;
- Agraph_t* nextg;
+ Agraph_t* nextg = NULL;
setErrorErrors (0);
ingDisc.dflt = sfstdin;