SUBDIRS = check intl src po doc tests
EXTRA_DIST = config/install-sh config/missing config/mkinstalldirs \
config/config.guess config/config.sub COPYING.LIB-2.0 \
- nointl/libintl.h \
Mkfiles/Makefile.flat \
Mkfiles/Makefile.dj Mkfiles/config.h.dj \
Mkfiles/Makefile.vc Mkfiles/config.h.vc
# copy Mkfiles/config.h.dj config.h
# make -fMkfiles/Makefile.dj
-CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86 -Inointl
+CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86
CC=gcc
all: src/yasm
# This file should be customized to particular platforms by changing CC and
# CFLAGS appropriately, along with writing a config.h for the platform.
-CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86 -Inointl
+CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86
CC=gcc
BISON=bison
FLEX=flex
# copy Mkfiles/config.h.vc config.h\r
# nmake -fMkfiles/Makefile.vc\r
\r
-CFLAGS=/DHAVE_CONFIG_H /I. /Isrc /Isrc/arch/x86 /Inointl\r
+CFLAGS=/DHAVE_CONFIG_H /I. /Isrc /Isrc/arch/x86\r
CC=cl\r
\r
all: src\yasm.exe\r
# include <assert.h>
#endif
-#ifdef gettext_noop
-#define N_(String) gettext_noop(String)
-#else
-#define N_(String) (String)
-#endif
-
#include "bitvect.h"
#include "globals.h"
{
sectionhead *sections;
+#if defined(HAVE_SETLOCALE) && defined(HAVE_LC_MESSAGES)
+ setlocale(LC_MESSAGES, "");
+#endif
+#if defined(LOCALEDIR)
+ bindtextdomain(PACKAGE, LOCALEDIR);
+#endif
+ textdomain(PACKAGE);
+
if (parse_cmdline(argc, argv, options, countof(options, opt_option)))
return EXIT_FAILURE;
#if defined(lint)
/*@dependent@*/ const char *gettext(const char *s);
+#define _(String) gettext(String)
#else
-#include <libintl.h>
+# ifdef HAVE_LOCALE_H
+# include <locale.h>
+# endif
+
+# ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) gettext(String)
+# else
+# define gettext(Msgid) (Msgid)
+# define dgettext(Domainname, Msgid) (Msgid)
+# define dcgettext(Domainname, Msgid, Category) (Msgid)
+# define textdomain(Domainname) while (0) /* nothing */
+# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
+# define _(String) (String)
+# endif
+#endif
+
+#ifdef gettext_noop
+# define N_(String) gettext_noop(String)
+#else
+# define N_(String) (String)
#endif
-#define _(String) gettext(String)
#if !defined(HAVE_MERGESORT) || defined(lint)
int mergesort(void *base, size_t nmemb, size_t size,
+++ /dev/null
-/* $IdPath$
- * Dummy libintl.h for use on platforms that don't have it.
- */
-#define gettext(x) x
-#define gettext_noop(x) x
# include <assert.h>
#endif
-#ifdef gettext_noop
-#define N_(String) gettext_noop(String)
-#else
-#define N_(String) (String)
-#endif
-
#include "bitvect.h"
#include "globals.h"
{
sectionhead *sections;
+#if defined(HAVE_SETLOCALE) && defined(HAVE_LC_MESSAGES)
+ setlocale(LC_MESSAGES, "");
+#endif
+#if defined(LOCALEDIR)
+ bindtextdomain(PACKAGE, LOCALEDIR);
+#endif
+ textdomain(PACKAGE);
+
if (parse_cmdline(argc, argv, options, countof(options, opt_option)))
return EXIT_FAILURE;
#if defined(lint)
/*@dependent@*/ const char *gettext(const char *s);
+#define _(String) gettext(String)
#else
-#include <libintl.h>
+# ifdef HAVE_LOCALE_H
+# include <locale.h>
+# endif
+
+# ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) gettext(String)
+# else
+# define gettext(Msgid) (Msgid)
+# define dgettext(Domainname, Msgid) (Msgid)
+# define dcgettext(Domainname, Msgid, Category) (Msgid)
+# define textdomain(Domainname) while (0) /* nothing */
+# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
+# define _(String) (String)
+# endif
+#endif
+
+#ifdef gettext_noop
+# define N_(String) gettext_noop(String)
+#else
+# define N_(String) (String)
#endif
-#define _(String) gettext(String)
#if !defined(HAVE_MERGESORT) || defined(lint)
int mergesort(void *base, size_t nmemb, size_t size,
#if defined(lint)
/*@dependent@*/ const char *gettext(const char *s);
+#define _(String) gettext(String)
#else
-#include <libintl.h>
+# ifdef HAVE_LOCALE_H
+# include <locale.h>
+# endif
+
+# ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) gettext(String)
+# else
+# define gettext(Msgid) (Msgid)
+# define dgettext(Domainname, Msgid) (Msgid)
+# define dcgettext(Domainname, Msgid, Category) (Msgid)
+# define textdomain(Domainname) while (0) /* nothing */
+# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
+# define _(String) (String)
+# endif
+#endif
+
+#ifdef gettext_noop
+# define N_(String) gettext_noop(String)
+#else
+# define N_(String) (String)
#endif
-#define _(String) gettext(String)
#if !defined(HAVE_MERGESORT) || defined(lint)
int mergesort(void *base, size_t nmemb, size_t size,