aboutsummaryrefslogtreecommitdiffstats
path: root/configure
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 /configure
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 '')
-rwxr-xr-xconfigure36
1 files changed, 18 insertions, 18 deletions
diff --git a/configure b/configure
index 4f5c7a9..a3adf8e 100755
--- a/configure
+++ b/configure
@@ -40,7 +40,7 @@ ac_help="$ac_help
ac_help="$ac_help
--enable-gopher enable GOPHER"
ac_help="$ac_help
- --enable-lynx lynx style keybind"
+ --enable-keymap[=w3m|lynx] default keybind style(w3m or lynx)"
ac_help="$ac_help
--with-editor=EDITOR default editor (/usr/bin/vi)"
ac_help="$ac_help
@@ -1597,34 +1597,34 @@ EOF
echo "$ac_t""$enable_gopher" 1>&6
- w3m_keybind="w3m"
- echo $ac_n "checking lynx style keybind is used""... $ac_c" 1>&6
-echo "configure:1603: checking lynx style keybind is used" >&5
- # Check whether --enable-lynx or --disable-lynx was given.
-if test "${enable_lynx+set}" = set; then
- enableval="$enable_lynx"
+ echo $ac_n "checking default keymap""... $ac_c" 1>&6
+echo "configure:1602: checking default keymap" >&5
+ # Check whether --enable-keymap or --disable-keymap was given.
+if test "${enable_keymap+set}" = set; then
+ enableval="$enable_keymap"
:
else
- enable_lynx="no"
+ enable_keymap="w3m"
fi
- echo "$ac_t""$enable_lynx" 1>&6
- if test x"$enable_lynx" = xyes; then
- w3m_keybind="lynx"
- KEYMAP_FILE="keybind_lynx"
- else
- w3m_keybind="w3m"
- KEYMAP_FILE="keybind"
- fi
+ echo "$ac_t""$enable_keymap" 1>&6
+ case x"$enable_keymap" in
+ xw3m)
+ KEYMAP_FILE="keybind";;
+ xlynx)
+ KEYMAP_FILE="keybind_lynx";;
+ *)
+ { echo "configure: error: keymap should be either w3m or lynx." 1>&2; exit 1; };;
+ esac
- HELP_FILE=w3mhelp-${w3m_keybind}_$w3m_lang.html
+ HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
cat >> confdefs.h <<EOF
#define HELP_FILE "$HELP_FILE"
EOF
cat >> confdefs.h <<EOF
-#define KEYBIND $w3m_keybind
+#define KEYBIND $enable_keymap
EOF