aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-03-11 17:11:12 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-03-11 17:11:12 +0000
commit49ac592e73155dacbcc3389b7c6530b75e6aa02d (patch)
tree8dbaad29bc55cc4f68080f50bdca2db77bcc7f67 /aclocal.m4
parent[w3m-dev 03814] fix autoconf (diff)
downloadw3m-49ac592e73155dacbcc3389b7c6530b75e6aa02d.tar.gz
w3m-49ac592e73155dacbcc3389b7c6530b75e6aa02d.zip
[w3m-dev 03816] --enable-lynx => --enable-keymap=lynx
* acinclude.m4 (AC_W3M_KEYMAP): --enable-lynx => --enable-keymap=lynx * Bonus/oldconfigure.sh: ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--aclocal.m430
1 files changed, 15 insertions, 15 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c2f8534..25a87e8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -193,24 +193,24 @@ fi])
# ----------------------------------------------------------------
AC_DEFUN([AC_W3M_KEYMAP],
[AC_SUBST(KEYMAP_FILE)
- w3m_keybind="w3m"
- AC_MSG_CHECKING(lynx style keybind is used)
- AC_ARG_ENABLE(lynx,
- [ --enable-lynx lynx style keybind],,
- [enable_lynx="no"])
- AC_MSG_RESULT($enable_lynx)
- if test x"$enable_lynx" = xyes; then
- w3m_keybind="lynx"
- KEYMAP_FILE="keybind_lynx"
- else
- w3m_keybind="w3m"
- KEYMAP_FILE="keybind"
- fi
+ AC_MSG_CHECKING(default keymap)
+ AC_ARG_ENABLE(keymap,
+ [ --enable-keymap[=w3m|lynx] default keybind style(w3m or lynx)],,
+ [enable_keymap="w3m"])
+ AC_MSG_RESULT($enable_keymap)
+ case x"$enable_keymap" in
+ xw3m)
+ KEYMAP_FILE="keybind";;
+ xlynx)
+ KEYMAP_FILE="keybind_lynx";;
+ *)
+ AC_MSG_ERROR([keymap should be either w3m or lynx.]);;
+ esac
AC_SUBST(HELP_FILE)
- HELP_FILE=w3mhelp-${w3m_keybind}_$w3m_lang.html
+ HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
AC_DEFINE_UNQUOTED(HELP_FILE, "$HELP_FILE")
AC_SUBST(KEYBIND)
- AC_DEFINE_UNQUOTED(KEYBIND, $w3m_keybind)])
+ AC_DEFINE_UNQUOTED(KEYBIND, $enable_keymap)])
#
# ----------------------------------------------------------------
# AC_W3M_DIGEST_AUTH