xfsdump: enable gettext
ENABLE_GETTEXT was not being defined when --enable-gettext
was specified as a config option, neither the German or
Polish translations were working. Add this define to
builddefs.in
See commit e84ec15d in xfsprogs.
Signed-off-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Phil White <pwhite@sgi.com>
diff --git a/include/builddefs.in b/include/builddefs.in
index d5cc8d3..269c928 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -95,6 +95,10 @@
-DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
-DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include
+ifeq ($(ENABLE_GETTEXT),yes)
+GCFLAGS += -DENABLE_GETTEXT
+endif
+
# First, Global, Platform, Local CFLAGS
CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)