aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-win32-reloc.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-08-10 17:18:27 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-08-10 17:18:27 +0800
commit99bb93cb5a7fcc73b3b527337705c862cd11d17d (patch)
tree9aa1252aa45befaa5289c45af186753ffba2dbdc /e-util/e-win32-reloc.c
parent16f84e35048c2bb63e417be590108bd95d83c113 (diff)
downloadgsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar.gz
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar.bz2
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar.lz
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar.xz
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.tar.zst
gsoc2013-evolution-99bb93cb5a7fcc73b3b527337705c862cd11d17d.zip
Pass also EVOLUTION_SYSCONFDIR, EVOLUTION_DATADIR and EVOLUTION_LIBDIR.
2005-08-10 Tor Lillqvist <tml@novell.com> * Makefile.am: (INCLUDES): Pass also EVOLUTION_SYSCONFDIR, EVOLUTION_DATADIR and EVOLUTION_LIBDIR. * e-win32-reloc.c: Handle also the above, and the bare PREFIX. * e-util-private.h: Ditto here. (PREFIX, SYSCONFDIR, DATADIR and LIBDIR without the EVOLUTION_ prefix, as that is how they are to be used, cf. gnome-program.h.) svn path=/trunk/; revision=30073
Diffstat (limited to 'e-util/e-win32-reloc.c')
-rw-r--r--e-util/e-win32-reloc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/e-util/e-win32-reloc.c b/e-util/e-win32-reloc.c
index e1afa21758..a3c9be7b84 100644
--- a/e-util/e-win32-reloc.c
+++ b/e-util/e-win32-reloc.c
@@ -35,6 +35,10 @@
static const char *localedir = NULL;
/* The others are in UTF-8 */
+static const char *prefix;
+static const char *sysconfdir;
+static const char *datadir;
+static const char *libdir;
static const char *gladedir;
static const char *helpdir;
static const char *etspecdir;
@@ -103,6 +107,10 @@ setup (void)
g_free (cp_prefix);
+ prefix = g_strdup (full_prefix);
+ sysconfdir = replace_prefix (full_prefix, EVOLUTION_SYSCONFDIR);
+ datadir = replace_prefix (full_prefix, EVOLUTION_DATADIR);
+ libdir = replace_prefix (full_prefix, EVOLUTION_LIBDIR);
gladedir = replace_prefix (full_prefix, EVOLUTION_GLADEDIR);
helpdir = replace_prefix (full_prefix, EVOLUTION_HELPDIR);
etspecdir = replace_prefix (full_prefix, EVOLUTION_ETSPECDIR);
@@ -131,6 +139,10 @@ _e_get_##varbl (void) \
}
GETTER(localedir)
+GETTER(prefix)
+GETTER(sysconfdir)
+GETTER(datadir)
+GETTER(libdir)
GETTER(gladedir)
GETTER(helpdir)
GETTER(etspecdir)