aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-09-25 18:08:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-09-25 18:08:59 +0000
commit2b0913ff2ad71fc7411acdc75c1fdac747fcacee (patch)
tree7555db2dc48977b9e95b9e5b3879bf06ae42f717 /configure.in
parentcheck header locale.h (diff)
downloadw3m-2b0913ff2ad71fc7411acdc75c1fdac747fcacee.tar.gz
w3m-2b0913ff2ad71fc7411acdc75c1fdac747fcacee.zip
add posubst, compile-time message l10n
* Makefile.in: @POSUBST@ * acinclude.m4(AC_W3M_M17N): add POSUBST, POLANG --enable-messagel10n * configure.in (W3M_LANG): subst (AM_GET_GNUTEXT): if messagel10n enabled, don't use NLS (AC_OUTOUT): add posubst, chmod +x * menu.c: remove if LANG == JA messages * rc.c: ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--configure.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 417f37c..b9970fd 100644
--- a/configure.in
+++ b/configure.in
@@ -12,6 +12,7 @@ AC_SUBST(W3M)
W3M=w3m
AC_DEFINE(W3M, w3m)
+AC_SUBST(W3M_LANG)
W3M_LANG=${LC_ALL:-$LANG}
dnl AM_INIT_AUTOMAKE(w3m, 0.4)
AC_CONFIG_HEADER(config.h)
@@ -41,7 +42,9 @@ W3M_TARGET=$target
AC_DEFINE_UNQUOTED(W3M_TARGET, $W3M_TARGET)
AC_W3M_M17N
-AM_GNU_GETTEXT([external])
+if test x$enable_messagel10n = xno; then
+ AM_GNU_GETTEXT([external])
+fi
NLSTARGET=""
if test x"$USE_NLS" = xyes; then
@@ -154,7 +157,7 @@ DOCDIRS="doc:en_English doc-jp:ja_Japanese"
AC_DEFINE_UNQUOTED(DOCDIRS, "$DOCDIRS")
AC_W3M_VERSION
-AC_OUTPUT([Makefile po/Makefile.in \
+AC_OUTPUT([Makefile posubst po/Makefile.in \
scripts/Makefile scripts/dirlist.cgi \
scripts/w3mhelp.cgi \
scripts/w3mmail.cgi scripts/xface2xpm \
@@ -166,3 +169,4 @@ w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile \
w3mhelp-w3m_en.html w3mhelp-w3m_ja.html \
w3mhelp-lynx_en.html w3mhelp-lynx_ja.html])
+chmod +x posubst