--- configure.in.old 2006-08-25 23:23:54.000000000 +0200 +++ configure.in 2006-08-25 23:24:04.000000000 +0200 @@ -146,7 +146,7 @@ AC_SUBST(dl_lib_flag) dnl installation path -inst_dir=$datadir/games/lgeneral +inst_dir=$datadir/lgeneral dis_flag="" AC_ARG_ENABLE( install, --- configure.in.old 2006-08-25 23:48:27.000000000 +0200 +++ configure.in 2006-08-25 23:49:09.000000000 +0200 @@ -105,13 +105,8 @@ dnl find out whether we can determine the path of the running executable ac_paths_determ=generic -AC_MSG_CHECKING(if executable's path can be determined at runtime) -readlink /proc/$$/exe >/dev/null 2>&1 && ac_paths_determ=linux -ac_can_determ_paths=yes -if test x$ac_paths_determ = xgeneric ; then ac_can_determ_paths=no AC_DEFINE_UNQUOTED(PATHS_GENERIC, 1, [Defined if detecting executable's path name is not supported at runtime.]) -fi AC_MSG_RESULT($ac_can_determ_paths) AC_MSG_RESULT(executable's path determination strategy... $ac_paths_determ) AM_CONDITIONAL(compile_paths_linux, test x$ac_paths_determ = xlinux) --- src/misc.c.old 2006-08-25 23:58:11.000000000 +0200 +++ src/misc.c 2006-08-26 00:01:35.000000000 +0200 @@ -418,16 +418,11 @@ #ifdef DISABLE_INSTALL return "."; #else - const char *prefix; static char *gamedir; - static const char suffix[] = "/share/games/lgeneral"; + static const char suffix[] = "@GENTOO_DATADIR@/lgeneral"; - unsigned len; if (gamedir) return gamedir; - prefix = paths_prefix(); - len = strlen(prefix); - gamedir = malloc(len + sizeof suffix); + gamedir = malloc(sizeof suffix); - strcpy(gamedir, prefix); - strcpy(gamedir + len, suffix); + strcpy(gamedir, suffix); return gamedir; #endif } --- lgc-pg/misc.c.old 2006-08-26 01:53:53.000000000 +0200 +++ lgc-pg/misc.c 2006-08-26 01:55:10.000000000 +0200 @@ -420,16 +420,11 @@ #ifdef DISABLE_INSTALL return "."; #else - const char *prefix; static char *gamedir; - static const char suffix[] = "/share/games/lgeneral"; - unsigned len; + static const char suffix[] = "@D@@GENTOO_DATADIR@/lgeneral"; if (gamedir) return gamedir; - prefix = paths_prefix(); - len = strlen(prefix); - gamedir = malloc(len + sizeof suffix); - strcpy(gamedir, prefix); - strcpy(gamedir + len, suffix); + gamedir = malloc(sizeof suffix); + strcpy(gamedir, suffix); return gamedir; #endif }