core: Remove MES_PKGDATADIR.
* configure: Do not add MES_PKGDATADIR to config.h. * configure.sh: Likewise. * simple.sh: Likewise. * src/mes.c (open_boot): Do not use MES_PKGDATADIR; rely on MES_PREFIX or cwd.
This commit is contained in:
parent
2659caeffa
commit
0549ebd0f7
1
configure
vendored
1
configure
vendored
|
@ -666,7 +666,6 @@ See \"Porting GNU Mes\" in the manual, or try --with-courage\n" mes-system)
|
||||||
"))
|
"))
|
||||||
(display (string-append "
|
(display (string-append "
|
||||||
#define MES_VERSION \"" VERSION "\"
|
#define MES_VERSION \"" VERSION "\"
|
||||||
#define MES_PKGDATADIR \"" pkgdatadir "\"
|
|
||||||
")))))
|
")))))
|
||||||
(substitute (string-append srcdest "build-aux/config.make.in") pairs #:target ".config.make"))
|
(substitute (string-append srcdest "build-aux/config.make.in") pairs #:target ".config.make"))
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,6 @@ EOF
|
||||||
fi
|
fi
|
||||||
cat >> include/mes/config.h <<EOF
|
cat >> include/mes/config.h <<EOF
|
||||||
#define MES_VERSION "$VERSION"
|
#define MES_VERSION "$VERSION"
|
||||||
#define MES_PKGDATADIR "$pkgdatadir"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
|
@ -33,7 +33,6 @@ mes_bits=64
|
||||||
cat > include/mes/config.h <<EOF
|
cat > include/mes/config.h <<EOF
|
||||||
#define SYSTEM_LIBC 1
|
#define SYSTEM_LIBC 1
|
||||||
#define MES_VERSION "git"
|
#define MES_VERSION "git"
|
||||||
#define MES_PKGDATADIR "/usr/local/share/mes"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
## Build ##
|
## Build ##
|
||||||
|
@ -126,7 +125,6 @@ mes_cpu=x86_64
|
||||||
cat > include/mes/config.h <<EOF
|
cat > include/mes/config.h <<EOF
|
||||||
// #define SYSTEM_LIBC 0
|
// #define SYSTEM_LIBC 0
|
||||||
#define MES_VERSION "git"
|
#define MES_VERSION "git"
|
||||||
#define MES_PKGDATADIR "/usr/local/share/mes"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
## Build ##
|
## Build ##
|
||||||
|
|
13
src/mes.c
13
src/mes.c
|
@ -1775,12 +1775,6 @@ open_boot ()
|
||||||
char boot[1024];
|
char boot[1024];
|
||||||
char file_name[1024];
|
char file_name[1024];
|
||||||
strcpy (g_datadir, ".");
|
strcpy (g_datadir, ".");
|
||||||
if (g_debug > 1)
|
|
||||||
{
|
|
||||||
eputs (";;; pkgdatadir=");
|
|
||||||
eputs (MES_PKGDATADIR);
|
|
||||||
eputs ("\n");
|
|
||||||
}
|
|
||||||
if (getenv ("MES_BOOT"))
|
if (getenv ("MES_BOOT"))
|
||||||
strcpy (boot, getenv ("MES_BOOT"));
|
strcpy (boot, getenv ("MES_BOOT"));
|
||||||
else
|
else
|
||||||
|
@ -1801,13 +1795,6 @@ open_boot ()
|
||||||
__stdin = try_open_boot (file_name, boot, "MES_PREFIX/share/mes");
|
__stdin = try_open_boot (file_name, boot, "MES_PREFIX/share/mes");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (__stdin < 0)
|
|
||||||
{
|
|
||||||
strcpy (g_datadir, MES_PKGDATADIR);
|
|
||||||
strcpy (file_name, g_datadir);
|
|
||||||
strcpy (file_name + strlen (file_name), "/module/mes/");
|
|
||||||
__stdin = try_open_boot (file_name, boot, "pkgdatadir");
|
|
||||||
}
|
|
||||||
if (__stdin < 0)
|
if (__stdin < 0)
|
||||||
{
|
{
|
||||||
g_datadir[0] = 0;
|
g_datadir[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue