* Makefile.am (INCLUDES): Search intl dirs for headers; define
authorTom Tromey <tromey@redhat.com>
Wed, 22 Apr 1998 07:58:44 +0000 (07:58 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 22 Apr 1998 07:58:44 +0000 (07:58 +0000)
LOCALEDIR.
* addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
* ar.c (main): Likewise.
* coffdump.c (main): Likewise.
* dlltool.c (main): Likewise.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* size.c (main): Likewise.
* srconv.c (main): Likewise.
* strings.c (main): Likewise.
* sysdump.c (main): Likewise.
* windres.c (main): Likewise.

16 files changed:
binutils/ChangeLog
binutils/Makefile.am
binutils/Makefile.in
binutils/addr2line.c
binutils/ar.c
binutils/coffdump.c
binutils/dlltool.c
binutils/nlmconv.c
binutils/nm.c
binutils/objcopy.c
binutils/objdump.c
binutils/size.c
binutils/srconv.c
binutils/strings.c
binutils/sysdump.c
binutils/windres.c

index 20985cf..f73012f 100644 (file)
@@ -1,3 +1,21 @@
+Wed Apr 22 00:33:56 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
+
+       * Makefile.am (INCLUDES): Search intl dirs for headers; define
+       LOCALEDIR.
+       * addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
+       * ar.c (main): Likewise.
+       * coffdump.c (main): Likewise.
+       * dlltool.c (main): Likewise.
+       * nlmconv.c (main): Likewise.
+       * nm.c (main): Likewise.
+       * objcopy.c (main): Likewise.
+       * objdump.c (main): Likewise.
+       * size.c (main): Likewise.
+       * srconv.c (main): Likewise.
+       * strings.c (main): Likewise.
+       * sysdump.c (main): Likewise.
+       * windres.c (main): Likewise.
+
 Tue Apr 21 22:13:08 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
 
        * Many files: Added gettext invocations around user-visible
index b0396b6..8be4f7b 100644 (file)
@@ -1,5 +1,8 @@
 ## Process this file with automake to generate Makefile.in
 
+## FIXME: Work around apparent bug in automake.
+INTLLIBS = @INTLLIBS@
+
 AUTOMAKE_OPTIONS = cygnus dejagnu
 
 SUBDIRS = po
@@ -64,7 +67,7 @@ INCDIR        = $(BASEDIR)/include
 
 DEP = mkdep
 
-INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@
+INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
 
 HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
        windres.h
index b9483ab..78b45b8 100644 (file)
@@ -77,6 +77,8 @@ NLMCONV_DEFS = @NLMCONV_DEFS@
 RANLIB = @RANLIB@
 UNDERSCORE = @UNDERSCORE@
 
+INTLLIBS = @INTLLIBS@
+
 AUTOMAKE_OPTIONS = cygnus dejagnu
 
 SUBDIRS = po
@@ -137,7 +139,7 @@ INCDIR      = $(BASEDIR)/include
 
 DEP = mkdep
 
-INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@
+INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
 
 HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
        windres.h
index 3d4ff90..7a55df3 100644 (file)
@@ -270,6 +270,10 @@ main (argc, argv)
   char *target;
   int c;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = *argv;
   xmalloc_set_program_name (program_name);
 
index a8fdebf..7141f42 100644 (file)
@@ -311,6 +311,10 @@ main (argc, argv)
   char *inarch_filename;
   int show_version;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = argv[0];
   xmalloc_set_program_name (program_name);
 
index 12f6344..64815fb 100644 (file)
@@ -485,6 +485,10 @@ main (ac, av)
       { NULL, no_argument, 0, 0 }
     };
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = av[0];
   xmalloc_set_program_name (program_name);
 
index 78ff1ab..07d5ec6 100644 (file)
@@ -2304,6 +2304,10 @@ main (ac, av)
   program_name = av[0];
   oav = av;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   while ((c = getopt_long (ac, av, "xcz:S:R:A:puaD:l:e:nkvbUh?m:yd:", long_options, 0)) 
         != EOF)
     {
index 8544ba0..2eaaa9f 100644 (file)
@@ -210,6 +210,10 @@ main (argc, argv)
   char *modname;
   char **matching;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = argv[0];
   xmalloc_set_program_name (program_name);
 
index 204c6a2..3dcdc29 100644 (file)
@@ -372,6 +372,10 @@ main (argc, argv)
   int c;
   int retval;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = *argv;
   xmalloc_set_program_name (program_name);
 
index b9da0c9..c1d48c6 100644 (file)
@@ -2155,6 +2155,10 @@ main (argc, argv)
      int argc;
      char *argv[];
 {
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = argv[0];
   xmalloc_set_program_name (program_name);
 
index 29c440e..ececdef 100644 (file)
@@ -2627,6 +2627,10 @@ main (argc, argv)
   char *target = default_target;
   boolean seenflag = false;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = *argv;
   xmalloc_set_program_name (program_name);
 
index 4ed3555..9bd8a45 100644 (file)
@@ -107,6 +107,10 @@ main (argc, argv)
   int temp;
   int c;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = *argv;
   xmalloc_set_program_name (program_name);
 
index 098a6d4..bd1ea65 100644 (file)
@@ -1917,8 +1917,12 @@ main (ac, av)
   };
   char **matching;
   char *input_file;
-
   char *output_file;
+
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = av[0];
   xmalloc_set_program_name (program_name);
 
index 5cf573a..20fa6c8 100644 (file)
@@ -122,6 +122,10 @@ main (argc, argv)
   int exit_status = 0;
   boolean files_given = false;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = argv[0];
   xmalloc_set_program_name (program_name);
   string_min = -1;
index ed365b4..3863031 100644 (file)
@@ -745,6 +745,10 @@ main (ac, av)
     {NULL, no_argument, 0, 0}
   };
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = av[0];
   xmalloc_set_program_name (program_name);
 
index b4a17df..0f07357 100644 (file)
@@ -846,6 +846,10 @@ main (argc, argv)
   int language;
   struct res_directory *resources;
 
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
   program_name = argv[0];
   xmalloc_set_program_name (program_name);