Просмотр исходного кода

Gettext fixes to sync with coreutils

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1406 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 20 лет назад
Родитель
Сommit
06f439b099
3 измененных файлов с 8 добавлено и 2 удалено
  1. 1 1
      configure.in
  2. 1 1
      lib/Makefile.am
  3. 6 0
      plugins/common.h

+ 1 - 1
configure.in

@@ -1661,7 +1661,7 @@ AC_SUBST(EXTRA_NETOBJS)
 AC_SUBST(DEPLIBS)
 
 AM_GNU_GETTEXT([external], [need-ngettext])
-AM_GNU_GETTEXT_VERSION(0.11.5)
+AM_GNU_GETTEXT_VERSION(0.13.1)
 
 dnl Check for Redhat spopen problem
 dnl Wierd problem where ECHILD is returned from a wait call in error

+ 1 - 1
lib/Makefile.am

@@ -10,7 +10,7 @@ libcoreutils_a_SOURCES = \
   full-write.c full-write.h \
   gettext.h \
   safe-read.c safe-read.h \
-  safe-write.c safe-write.h xalloc-die.c
+  safe-write.c safe-write.h strcase.h xalloc-die.c
 
 other_coreutils_files = \
   error.c error.h \

+ 6 - 0
plugins/common.h

@@ -218,6 +218,12 @@ enum {
  */
 #include "gettext.h"
 #define _(String) gettext (String)
+#if ! ENABLE_NLS
+# undef textdomain
+# define textdomain(Domainname) /* empty */
+# undef bindtextdomain
+# define bindtextdomain(Domainname, Dirname) /* empty */
+#endif
 
 /* For non-GNU compilers to ignore __attribute__ */
 #ifndef __GNUC__