summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-04-18 10:58:30 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-04-18 10:58:30 +0000
commit380281f0da9caa065cfe99a458b3538cc3f5d71a (patch)
treee850962612010b0d91308ec80ce8364351b1b442
parent9097e252e477e18182f08a032d8860bdee9a0416 (diff)
Make --disable-nls to work
Original commit message from CVS: * common/m4/gst-gettext.m4: * gst/gst-i18n-lib.h: Make --disable-nls to work
-rw-r--r--m4/gst-gettext.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/gst-gettext.m4 b/m4/gst-gettext.m4
index f87b2e6..a63651b 100644
--- a/m4/gst-gettext.m4
+++ b/m4/gst-gettext.m4
@@ -5,7 +5,11 @@ dnl defines GETTEXT_PACKAGE and LOCALEDIR
AC_DEFUN([AG_GST_GETTEXT],
[
- GETTEXT_PACKAGE=[$1]
+ if test "$USE_NLS" = "yes"; then
+ GETTEXT_PACKAGE=[$1]
+ else
+ GETTEXT_PACKAGE=[NULL]
+ fi
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
[gettext package name])