summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-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])