summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-06-14 22:29:30 +0000
committerPaul Smith <psmith@gnu.org>2000-06-14 22:29:30 +0000
commitc392c19335891fddcb446e63cbe6aa43b4f4b3a2 (patch)
tree66e404c5960982bf12ea81ee50ac6b545301e976 /make.h
parent4972b017b63f3ce324bfa65a1b46a2a173baf463 (diff)
downloadgunmake-c392c19335891fddcb446e63cbe6aa43b4f4b3a2.tar.gz
* More fixes for configuring gettext correctly.
Diffstat (limited to 'make.h')
-rw-r--r--make.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/make.h b/make.h
index f128618..c7fc4b6 100644
--- a/make.h
+++ b/make.h
@@ -39,11 +39,28 @@ Boston, MA 02111-1307, USA. */
# define PARAMS(protos) ()
#endif /* C++ or ANSI C. */
+/* Include libintl.h, if it was found: we don't even look for it unless we
+ want to use the system's gettext(). If not, use the included gettext.h. */
+
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+# ifdef HAVE_LOCALE_H
+# include <locale.h>
+# endif
+#else
+# include "gettext.h"
+#endif
+
+#ifndef gettext_noop
+/* For automatic extraction of messages sometimes no real translation is
+ needed. Instead the string itself is the result. */
+# define gettext_noop(Str) (Str)
+#endif
-#include "gettext.h"
#define _(Text) gettext (Text)
#define N_(Text) gettext_noop (Text)
+
#if !HAVE_SETLOCALE
# define setlocale(Category, Locale) /* empty */
#endif