summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-11-25 17:32:14 +0800
committerZenWalker <[email protected]>2019-12-01 13:20:15 +0100
commit4f66aef00bb86ca01616849bfc60ef362fbd6f69 (patch)
treec74581dc95b28cc54ea68bb7c930f95180e034bd
parentdfa4489940d461401d3e91b56abc5fba34bf187d (diff)
downloadengrampa-4f66aef00bb86ca01616849bfc60ef362fbd6f69.tar.bz2
engrampa-4f66aef00bb86ca01616849bfc60ef362fbd6f69.tar.xz
define LOCALEDIR for bindtextdomain()
-rw-r--r--configure.ac8
-rw-r--r--src/Makefile.am1
2 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index af8446d..51c147e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,14 +135,6 @@ AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
-if test "x${prefix}" = "xNONE"; then
- AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Locale dir])
-else
- AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Locale dir])
-fi
-
-dnl ******************************
-
dnl ******************************
AC_ARG_ENABLE([magic],
diff --git a/src/Makefile.am b/src/Makefile.am
index 1f125f8..576c803 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,7 @@ AM_CPPFLAGS = \
-DPIXMAPSDIR=\""$(datadir)/pixmaps"\" \
-DGLADEDIR=\""$(gladedir)"\" \
-DPRIVEXECDIR=\"$(privexecdir)\" \
+ -DLOCALEDIR=\""$(datadir)/locale"\" \
-DSHDIR=\"$(shdir)\" \
$(FR_CFLAGS) \
$(JSON_GLIB_CFLAGS) \