[PATCH 06/20] build system: Make --enable-gettext actually enable gettext

Christoph Hellwig
2008-12-22T16:43:59Z

[-- Attachment #1: xfsprogs-gettext-fix--enable-gettext --]
[-- Type: text/plain, Size: 1115 bytes --]

From: Arkadiusz Miskiewicz <arekm@maven.pl>

ENABLE_GETTEXT wasn't defined when --enable-gettext was
passed as configure option. Now this is fixed.

Reviewed-by: Christoph Hellwig <hch@lst.de>

---
xfsprogs/include/builddefs.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xfsprogs/include/builddefs.in b/xfsprogs/include/builddefs.in
index f1b4340..f07d8d6 100644
--- a/xfsprogs/include/builddefs.in
+++ b/xfsprogs/include/builddefs.in
@@ -118,6 +118,10 @@ GCFLAGS = $(OPTIMIZER) $(DEBUG) \
-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)

--
1.6.0.5