* configure.in: Eliminate --with-terminfo option, which was
essentially equivalent to --with-included-slang and didn't force anything. * acinclude.m4 (AC_USE_TERMINFO): Remove. * INSTALL: Adjust to match. * FAQ: Likewise.
Этот коммит содержится в:
родитель
9deca156f0
Коммит
15098a5cd1
@ -1,3 +1,12 @@
|
|||||||
|
2002-09-07 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Eliminate --with-terminfo option, which was
|
||||||
|
essentially equivalent to --with-included-slang and didn't force
|
||||||
|
anything.
|
||||||
|
* acinclude.m4 (AC_USE_TERMINFO): Remove.
|
||||||
|
* INSTALL: Adjust to match.
|
||||||
|
* FAQ: Likewise.
|
||||||
|
|
||||||
2002-09-05 Pavel Roskin <proski@gnu.org>
|
2002-09-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Fix USE_VFS_NET conditional. Don't substitute
|
* configure.in: Fix USE_VFS_NET conditional. Don't substitute
|
||||||
|
6
FAQ
6
FAQ
@ -214,9 +214,9 @@ Questions and Answers
|
|||||||
http://www.tuxedo.org/~esr/terminfo/
|
http://www.tuxedo.org/~esr/terminfo/
|
||||||
ftp://dickey.his.com/ncurses/
|
ftp://dickey.his.com/ncurses/
|
||||||
|
|
||||||
You can select whether Midnight Commander will use terminfo or termcap
|
You can force Midnight Commander to use the termcap database by
|
||||||
database by giving --with-terminfo or --with-termcap option to the
|
giving --with-termcap option to the configure script. The default
|
||||||
configure. Default is terminfo if found, otherwise termcap.
|
is to use terminfo.
|
||||||
|
|
||||||
If you don't have permissions to edit terminal databases you can use
|
If you don't have permissions to edit terminal databases you can use
|
||||||
Learn keys feature of Midnight Commander instead. Press Esc 9 o k and
|
Learn keys feature of Midnight Commander instead. Press Esc 9 o k and
|
||||||
|
9
INSTALL
9
INSTALL
@ -149,11 +149,10 @@ better than everything else),
|
|||||||
on your system it will be used if possible. You can force usage of
|
on your system it will be used if possible. You can force usage of
|
||||||
the included S-Lang with the `--with-included-slang' option.
|
the included S-Lang with the `--with-included-slang' option.
|
||||||
|
|
||||||
This option will usually try to use the terminfo database if it
|
S-Lang tries to use the terminfo database if it's available,
|
||||||
is available, otherwise it will use the termcap database. At
|
otherwise it uses the termcap database. At the compile time, you
|
||||||
compile time, you may force the use the terminal database with
|
may force using the termcap database by using the option
|
||||||
the `--with-termcap' and `--with-terminfo' options (both options
|
`--with-termcap', which also enables `--with-included-slang'.
|
||||||
automatically turn `--with-included-slang' on).
|
|
||||||
|
|
||||||
`--with-ncurses[=directory]'
|
`--with-ncurses[=directory]'
|
||||||
Use this flag (either with or without the =directory part), if
|
Use this flag (either with or without the =directory part), if
|
||||||
|
16
acinclude.m4
16
acinclude.m4
@ -634,12 +634,6 @@ fi
|
|||||||
rm -f conftest*]
|
rm -f conftest*]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_TERMINFO], [
|
|
||||||
AC_DEFINE(SLANG_TERMINFO, 1, [Define to use S-Lang with terminfo])
|
|
||||||
AC_MSG_NOTICE([using SLang screen manager/terminfo])
|
|
||||||
slang_term=" with terminfo"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_TERMCAP], [
|
AC_DEFUN([AC_USE_TERMCAP], [
|
||||||
AC_MSG_NOTICE([using S-Lang screen manager/termcap])
|
AC_MSG_NOTICE([using S-Lang screen manager/termcap])
|
||||||
AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap library])
|
AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap library])
|
||||||
@ -669,25 +663,23 @@ AC_DEFUN([AC_WITH_SLANG], [
|
|||||||
#endif], [
|
#endif], [
|
||||||
SLtt_get_terminfo();
|
SLtt_get_terminfo();
|
||||||
SLtt_tgetflag("");],
|
SLtt_tgetflag("");],
|
||||||
[LIBS="$ac_save_LIBS"; AC_USE_TERMINFO],
|
[LIBS="$ac_save_LIBS"],
|
||||||
[LIBS="$ac_save_LIBS"; AC_USE_TERMCAP])
|
[LIBS="$ac_save_LIBS"; AC_USE_TERMCAP])
|
||||||
else
|
else
|
||||||
screen_manager="SLang"
|
screen_manager="SLang"
|
||||||
fi
|
fi
|
||||||
if $slang_check_lib
|
if $slang_check_lib
|
||||||
then
|
then
|
||||||
use_terminfo=false
|
use_terminfo=
|
||||||
for dir in /usr/lib /usr/share/lib /usr/local/lib /lib \
|
for dir in /usr/lib /usr/share/lib /usr/local/lib /lib \
|
||||||
/usr/local/share /usr/share
|
/usr/local/share /usr/share
|
||||||
do
|
do
|
||||||
if test -d $dir/terminfo; then
|
if test -d $dir/terminfo; then
|
||||||
use_terminfo=true;
|
use_terminfo=yes
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if $use_terminfo; then
|
if test -z "$use_terminfo"; then
|
||||||
AC_USE_TERMINFO
|
|
||||||
else
|
|
||||||
AC_USE_TERMCAP
|
AC_USE_TERMCAP
|
||||||
fi
|
fi
|
||||||
fi]
|
fi]
|
||||||
|
@ -494,15 +494,6 @@ if test "x$screen_type" != xncurses; then
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH(terminfo,
|
|
||||||
[--with-terminfo SLANG: Force usage of terminfo],[
|
|
||||||
if test x$withval = xyes; then
|
|
||||||
AC_USE_TERMINFO
|
|
||||||
slang_check_lib=false
|
|
||||||
slang_use_system_installed_lib=false
|
|
||||||
fi]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_ARG_WITH(termcap,
|
AC_ARG_WITH(termcap,
|
||||||
[--with-termcap SLANG: Force usage of termcap],[
|
[--with-termcap SLANG: Force usage of termcap],[
|
||||||
if test x$withval = xyes; then
|
if test x$withval = xyes; then
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user