Make --disable-nls to work
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 18 Apr 2007 10:58:30 +0000 (10:58 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 18 Apr 2007 10:58:30 +0000 (10:58 +0000)
Original commit message from CVS:
* common/m4/gst-gettext.m4:
* gst/gst-i18n-lib.h:
Make --disable-nls to work

m4/gst-gettext.m4

index f87b2e62facc29668b6f0c053d60dd0050b2f1bf..a63651bf843c343e85283a67e1cfe9dccb5f4dc7 100644 (file)
@@ -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])