summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
Diffstat (limited to 'make.h')
-rw-r--r--make.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/make.h b/make.h
index 18eb1c9..d217632 100644
--- a/make.h
+++ b/make.h
@@ -40,11 +40,25 @@ Boston, MA 02111-1307, USA. */
#endif /* C++ or ANSI C. */
-/* For now, set gettext macro to a no-op. */
-#undef _
-#undef N_
-#define _(s) s
-#define N_(s) s
+#if HAVE_LOCALE_H
+# include <locale.h>
+#endif
+#if !HAVE_SETLOCALE
+# define setlocale(Category, Locale) /* empty */
+#endif
+
+#if ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+#else
+# undef bindtextdomain
+# define bindtextdomain(Domain, Directory) /* empty */
+# undef textdomain
+# define textdomain(Domain) /* empty */
+# define _(Text) Text
+# define gettext(Text) Text
+#endif
+#define N_(Text) Text
#ifdef CRAY