--- pathnames.h 2012-03-10 01:01:58.000000000 +0100
+++ pathnames.h 2012-03-10 01:02:31.000000000 +0100
#endif /* ! PATH_OBJDIR */
#ifndef PATH_OBJDIRPREFIX
-#define PATH_OBJDIRPREFIX "/usr/obj"
+#define PATH_OBJDIRPREFIX "@PREFIX@/obj"
#endif /* ! PATH_OBJDIRPREFIX */
#endif /* ! PATH_DEFSYSMK */
-#define PATH_DEFSYSPATH "/usr/share/mk"
+#define PATH_DEFSYSPATH "@PREFIX@/share/mk/bsdmake"
#endif /* ! PATH_DEFSYSPATH */
#endif /* pathnames_h_235b888a */
--- dir.c 2012-03-10 01:28:22.000000000 +0100
+++ dir.c 2012-03-10 01:28:40.000000000 +0100
*-----------------------------------------------------------------------
-Path_AddDirPrefix(struct Path *path, const char *prefix, const char *inname)
- if (prefix && prefix[0] == '/' && prefix[1] != 0) {
- strlcpy(buf, prefix, sizeof(buf));
- strlcat(buf, inname, sizeof(buf));
- return Path_AddDir(path, name);
Path_AddDir(struct Path *path, const char *name)
--- dir.h 2012-03-10 01:28:54.000000000 +0100
+++ dir.h 2012-03-10 01:29:03.000000000 +0100
void Dir_PrintDirectories(void);
struct Dir *Path_AddDir(struct Path *, const char *);
-struct Dir *Path_AddDirPrefix(struct Path *, const char *, const char *);
void Path_Clear(struct Path *);
void Path_Concat(struct Path *, const struct Path *);
void Path_Duplicate(struct Path *, const struct Path *);
--- main.c 2012-03-10 01:25:51.000000000 +0100
+++ main.c 2012-03-10 01:31:10.000000000 +0100