summaryrefslogtreecommitdiff
path: root/xfd.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2010-01-15 22:20:56 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2010-01-29 22:39:19 -0800
commit12a1392fc96e32ed6d55208a2a7fc040617a9cb7 (patch)
tree51f01517b3aed8af3773e0aad43603152f73a2b1 /xfd.c
parentb83ec6e3a79e30b8a7a3947679221ad76441b27f (diff)
Integrate gettext support with autotools build system
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'xfd.c')
-rw-r--r--xfd.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/xfd.c b/xfd.c
index 3879d0d..aa1f4a6 100644
--- a/xfd.c
+++ b/xfd.c
@@ -28,6 +28,10 @@ in this Software without prior written authorization from The Open Group.
*/
/* $XFree86: xc/programs/xfd/xfd.c,v 1.8 2003/02/20 02:56:40 dawes Exp $ */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xos.h>
@@ -40,8 +44,12 @@ in this Software without prior written authorization from The Open Group.
#include <X11/Xaw/Command.h>
#include <stdio.h>
#include <stdlib.h>
-#include <libintl.h>
-#include <locale.h>
+#ifdef USE_GETTEXT
+# include <X11/Xlocale.h>
+# include <libintl.h>
+#else
+# define gettext(a) (a)
+#endif
#include "grid.h"
#ifdef XRENDER
#include <X11/Xft/Xft.h>
@@ -192,7 +200,7 @@ main(int argc, char *argv[])
/* mainly for debugging */
if ((domaindir = getenv ("TEXTDOMAINDIR")) == NULL) {
- domaindir = "/usr/share/locale";
+ domaindir = LOCALEDIR;
}
bindtextdomain ("xfd", domaindir);