* 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.
This commit is contained in:
Pavel Roskin 2002-09-07 07:52:23 +00:00
parent 9deca156f0
commit 15098a5cd1
5 changed files with 20 additions and 29 deletions

View File

@ -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>
* configure.in: Fix USE_VFS_NET conditional. Don't substitute

6
FAQ
View File

@ -214,9 +214,9 @@ Questions and Answers
http://www.tuxedo.org/~esr/terminfo/
ftp://dickey.his.com/ncurses/
You can select whether Midnight Commander will use terminfo or termcap
database by giving --with-terminfo or --with-termcap option to the
configure. Default is terminfo if found, otherwise termcap.
You can force Midnight Commander to use the termcap database by
giving --with-termcap option to the configure script. The default
is to use terminfo.
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

View File

@ -149,11 +149,10 @@ better than everything else),
on your system it will be used if possible. You can force usage of
the included S-Lang with the `--with-included-slang' option.
This option will usually try to use the terminfo database if it
is available, otherwise it will use the termcap database. At
compile time, you may force the use the terminal database with
the `--with-termcap' and `--with-terminfo' options (both options
automatically turn `--with-included-slang' on).
S-Lang tries to use the terminfo database if it's available,
otherwise it uses the termcap database. At the compile time, you
may force using the termcap database by using the option
`--with-termcap', which also enables `--with-included-slang'.
`--with-ncurses[=directory]'
Use this flag (either with or without the =directory part), if

View File

@ -634,12 +634,6 @@ fi
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_MSG_NOTICE([using S-Lang screen manager/termcap])
AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap library])
@ -669,25 +663,23 @@ AC_DEFUN([AC_WITH_SLANG], [
#endif], [
SLtt_get_terminfo();
SLtt_tgetflag("");],
[LIBS="$ac_save_LIBS"; AC_USE_TERMINFO],
[LIBS="$ac_save_LIBS"],
[LIBS="$ac_save_LIBS"; AC_USE_TERMCAP])
else
screen_manager="SLang"
fi
if $slang_check_lib
then
use_terminfo=false
use_terminfo=
for dir in /usr/lib /usr/share/lib /usr/local/lib /lib \
/usr/local/share /usr/share
do
if test -d $dir/terminfo; then
use_terminfo=true;
use_terminfo=yes
break
fi
done
if $use_terminfo; then
AC_USE_TERMINFO
else
if test -z "$use_terminfo"; then
AC_USE_TERMCAP
fi
fi]

View File

@ -494,15 +494,6 @@ if test "x$screen_type" != xncurses; then
])
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,
[--with-termcap SLANG: Force usage of termcap],[
if test x$withval = xyes; then