mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-02 13:12:53 +03:00
* configure.in: Remove support for curses libraries other than
ncurses. * acinclude.m4: Likewise. * FAQ: Remove everything about UNIX curses. * INSTALL: Likewise.
This commit is contained in:
parent
a85dc7c5f9
commit
8176f16111
@ -1,5 +1,11 @@
|
|||||||
2001-08-24 Pavel Roskin <proski@gnu.org>
|
2001-08-24 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Remove support for curses libraries other than
|
||||||
|
ncurses.
|
||||||
|
* acinclude.m4: Likewise.
|
||||||
|
* FAQ: Remove everything about UNIX curses.
|
||||||
|
* INSTALL: Likewise.
|
||||||
|
|
||||||
* configure.in: Enable large file support by default.
|
* configure.in: Enable large file support by default.
|
||||||
* NEWS: Mention it.
|
* NEWS: Mention it.
|
||||||
* INSTALL: Document it. Minor fixes.
|
* INSTALL: Document it. Minor fixes.
|
||||||
|
60
FAQ
60
FAQ
@ -1,4 +1,4 @@
|
|||||||
Midnight Commander
|
GNU Midnight Commander
|
||||||
Questions and Answers
|
Questions and Answers
|
||||||
|
|
||||||
The newest version of this document is available at
|
The newest version of this document is available at
|
||||||
@ -9,8 +9,8 @@ Questions and Answers
|
|||||||
+ 1.2 Does it run on my machine?
|
+ 1.2 Does it run on my machine?
|
||||||
+ 1.3 Does it work with my terminal?
|
+ 1.3 Does it work with my terminal?
|
||||||
+ 1.4 What else do I need to run MC?
|
+ 1.4 What else do I need to run MC?
|
||||||
+ 1.5 Is Midnight Commander Public Domain? Copyrighted?
|
+ 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
|
||||||
+ 1.6 Where can I get Midnight Commander?
|
+ 1.6 Where can I get GNU Midnight Commander?
|
||||||
+ 1.7 I don't have FTP access. Where can I get MC?
|
+ 1.7 I don't have FTP access. Where can I get MC?
|
||||||
* 2 Keyboard
|
* 2 Keyboard
|
||||||
+ 2.1 What does documentation mean with the C-?, M-? and F?
|
+ 2.1 What does documentation mean with the C-?, M-? and F?
|
||||||
@ -155,10 +155,7 @@ Questions and Answers
|
|||||||
If you do not want to use the S-Lang library you could try using
|
If you do not want to use the S-Lang library you could try using
|
||||||
ncurses (we recommend only version 4.1 and above).
|
ncurses (we recommend only version 4.1 and above).
|
||||||
|
|
||||||
You can get it along with other curses libraries, too, but results may
|
1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
|
||||||
not be pretty or even usable.
|
|
||||||
|
|
||||||
1.5 Is Midnight Commander Public Domain? Copyrighted?
|
|
||||||
|
|
||||||
Midnight Commander is under GNU Public License which basically means
|
Midnight Commander is under GNU Public License which basically means
|
||||||
that you may freely copy, change and distribute it, but that you may
|
that you may freely copy, change and distribute it, but that you may
|
||||||
@ -167,11 +164,11 @@ Questions and Answers
|
|||||||
For details, the GNU license is included in GNU Midnight Commander
|
For details, the GNU license is included in GNU Midnight Commander
|
||||||
source distribution (the COPYING file).
|
source distribution (the COPYING file).
|
||||||
|
|
||||||
Midnight Commander is nowadays officially a part of GNU project. All
|
Midnight Commander is now officially a part of the GNU project.
|
||||||
the authors of GNU Midnight Commander have given all their rights on
|
All the authors of GNU Midnight Commander have given all their rights
|
||||||
the program to the Free Software Foundation.
|
on the program to the Free Software Foundation.
|
||||||
|
|
||||||
1.6 Where can I get Midnight Commander?
|
1.6 Where can I get GNU Midnight Commander?
|
||||||
|
|
||||||
The main site is ftp://ftp.gnome.org/pub/GNOME/stable/sources/mc/
|
The main site is ftp://ftp.gnome.org/pub/GNOME/stable/sources/mc/
|
||||||
|
|
||||||
@ -184,8 +181,8 @@ Questions and Answers
|
|||||||
|
|
||||||
2.1 What does documentation mean with the C-?, M-? and F? keys?
|
2.1 What does documentation mean with the C-?, M-? and F? keys?
|
||||||
|
|
||||||
Midnight Commander documentation uses emacs style names for keyboard
|
GNU Midnight Commander documentation uses emacs style names for
|
||||||
keys.
|
keyboard keys.
|
||||||
|
|
||||||
C stands for the Ctrl key. For example, C-f means that you should hold
|
C stands for the Ctrl key. For example, C-f means that you should hold
|
||||||
down the Ctrl key and press the f key.
|
down the Ctrl key and press the f key.
|
||||||
@ -336,26 +333,24 @@ Questions and Answers
|
|||||||
+---------+
|
+---------+
|
||||||
|
|
||||||
This also happens when you use the -a option. Other than that
|
This also happens when you use the -a option. Other than that
|
||||||
possible reason is 1, 2 or 3 (see below).
|
possible reason is 1 or 2 (see below).
|
||||||
|
|
||||||
* Lines are shown as lower case characters like this
|
* Lines are shown as lower case characters like this
|
||||||
|
|
||||||
lqqqqqqqqqk
|
lqqqqqqqqqk
|
||||||
x x
|
x x
|
||||||
mqqqqqqqqqj
|
mqqqqqqqqqj
|
||||||
|
|
||||||
Possible reason is 2 or 3 (see below).
|
Possible reason is 1 or 2 (see below).
|
||||||
|
|
||||||
* Lines are shown as blanks or missing characters. Possible reason
|
* Lines are shown as blanks or missing characters. Possible reason
|
||||||
is 3 or 4 (see below).
|
is 2 or 3 (see below).
|
||||||
|
|
||||||
The reason for the problem is one of following:
|
The reason for the problem is one of following:
|
||||||
|
|
||||||
1. Your curses library might not support line drawing characters.
|
1. Your terminal might not support line drawing characters. Vt100
|
||||||
S-Lang, ncurses and SystemV curses do support them, BSD curses
|
|
||||||
doesn't. MC uses S-Lang by default so this is not usually a
|
|
||||||
problem.
|
|
||||||
2. Your terminal might not support line drawing characters. Vt100
|
|
||||||
compatible terminals, rxvt, xterm and color_xterm do support them.
|
compatible terminals, rxvt, xterm and color_xterm do support them.
|
||||||
3. Your terminfo or termcap database might have missing or incorrect
|
2. Your terminfo or termcap database might have missing or incorrect
|
||||||
definitions for line drawing characters. Set the acsc variable in
|
definitions for line drawing characters. Set the acsc variable in
|
||||||
the terminfo database like this:
|
the terminfo database like this:
|
||||||
acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x\263h
|
acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x\263h
|
||||||
@ -364,7 +359,7 @@ Questions and Answers
|
|||||||
character set. The octal values might be different for other
|
character set. The octal values might be different for other
|
||||||
character sets. If you are using termcap instead of terminfo, you
|
character sets. If you are using termcap instead of terminfo, you
|
||||||
should modify above solution appropriately.
|
should modify above solution appropriately.
|
||||||
4. Your terminal font might not support line drawing characters. Try
|
3. Your terminal font might not support line drawing characters. Try
|
||||||
changing the font.
|
changing the font.
|
||||||
|
|
||||||
Here is Miguel's answer to Torben on this subject.
|
Here is Miguel's answer to Torben on this subject.
|
||||||
@ -425,9 +420,9 @@ Questions and Answers
|
|||||||
|
|
||||||
More detailed answer:
|
More detailed answer:
|
||||||
|
|
||||||
First, check that your terminal supports color. color_xterm, rxvt and
|
Check that your terminal supports color. color_xterm, rxvt and Linux
|
||||||
Linux console do support, most other terminals don't. You can test
|
console do support, most other terminals don't. You can test color
|
||||||
color support with following simple C program:
|
support with following simple C program:
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@ -440,19 +435,18 @@ Questions and Answers
|
|||||||
terminal supports color, otherwise not (however, for color_xterm see
|
terminal supports color, otherwise not (however, for color_xterm see
|
||||||
also the next question).
|
also the next question).
|
||||||
|
|
||||||
Second, check that you are using Ncurses or the S-Lang library (type
|
Check whether you are using Ncurses or the S-Lang library (type
|
||||||
"mc -V" to find out), in addition some SystemV curses implementations
|
"mc -V" to find out).
|
||||||
do support color, most don't.
|
|
||||||
|
|
||||||
With S-Lang library you can force color support by setting the
|
With S-Lang library you can force color support by setting the
|
||||||
environment variable COLORTERM to any value.
|
environment variable COLORTERM to any value.
|
||||||
|
|
||||||
Third, if you use ncurses library, check that your terminfo database
|
If you use ncurses library, check that your terminfo database supports
|
||||||
supports color. If not you should install one of the enhanced terminfo
|
color. If not, you should install one of the enhanced terminfo
|
||||||
databases included in GNU Midnight Commander source distribution.
|
databases included in GNU Midnight Commander source distribution.
|
||||||
|
|
||||||
Fourth, you might want to set the TERM environment variable so that
|
You might want to set the TERM environment variable so that you are
|
||||||
you use the correct terminfo database or termcap entry.
|
using the correct terminfo database or termcap entry.
|
||||||
|
|
||||||
If you use color_xterm (or rxvt) the correct value might be
|
If you use color_xterm (or rxvt) the correct value might be
|
||||||
xterm-color, xtermc or simply xterm.
|
xterm-color, xtermc or simply xterm.
|
||||||
|
36
INSTALL
36
INSTALL
@ -172,9 +172,6 @@ better than everything else),
|
|||||||
example, if you have installed ncurses under /gnu/lib and
|
example, if you have installed ncurses under /gnu/lib and
|
||||||
/gnu/include, you specify: --with-ncurses=/gnu
|
/gnu/include, you specify: --with-ncurses=/gnu
|
||||||
|
|
||||||
Support for traditional UNIX curses (not ncurses) is obsolete and will be
|
|
||||||
removed.
|
|
||||||
|
|
||||||
Run `configure --help' to see the full list of options.
|
Run `configure --help' to see the full list of options.
|
||||||
|
|
||||||
On systems that require unusual options for compilation or linking
|
On systems that require unusual options for compilation or linking
|
||||||
@ -343,18 +340,11 @@ Midnight Commander. The included library is very stable and has been
|
|||||||
used for years without problems. You shouldn't expect any problems
|
used for years without problems. You shouldn't expect any problems
|
||||||
porting S-Lang to your platform.
|
porting S-Lang to your platform.
|
||||||
|
|
||||||
Another possibility is to download and install ncurses on your OS. The
|
Another possibility is to download and install ncurses on your OS.
|
||||||
Midnight Commander can use ncurses as well as the display engine. However,
|
GNU Midnight Commander can use ncurses as well as the display engine.
|
||||||
you may encounter minor differences, for instance, you will be unable to
|
However, you may encounter minor differences, for instance, you will
|
||||||
force the color mode by giving the "-c" switch to GNU Midnight Commander.
|
be unable to force the color mode by giving the "-c" switch to GNU
|
||||||
|
Midnight Commander.
|
||||||
As the last resort, you may try to use the curses library supplied with
|
|
||||||
your OS. Beware that some systems, e.g. SystemV Release 4, include the
|
|
||||||
curses library with bugs critical to GNU Midnight Commander. You may try
|
|
||||||
to recompile all your source code with the symbol BUGGY_CURSES defined,
|
|
||||||
i.e.
|
|
||||||
|
|
||||||
make clean; make CFLAGS="-g -O -DBUGGY_CURSES"
|
|
||||||
|
|
||||||
|
|
||||||
Obtaining the missing pieces of GNU Midnight Commander
|
Obtaining the missing pieces of GNU Midnight Commander
|
||||||
@ -402,19 +392,3 @@ And the GNU Compiler Collection may be obtained from the following sites:
|
|||||||
ftp://gcc.gnu.org/pub/gcc/releases/
|
ftp://gcc.gnu.org/pub/gcc/releases/
|
||||||
ftp://ftp.gnu.org/gnu/gcc/
|
ftp://ftp.gnu.org/gnu/gcc/
|
||||||
http://gcc.gnu.org/mirrors.html
|
http://gcc.gnu.org/mirrors.html
|
||||||
|
|
||||||
Unsupported, deprecated and possibly broken options to configure:
|
|
||||||
-----------------------------------------------------------------
|
|
||||||
`--with-vcurses[=directory]'
|
|
||||||
Use this flag to force GNU Midnight Commander to use a SystemV
|
|
||||||
type curses, the optional directory specifies where the compiler
|
|
||||||
should look for the include files.
|
|
||||||
|
|
||||||
`--with-sunos-curses'
|
|
||||||
You use this flag on SunOS machines if you want to force using
|
|
||||||
SunOS 4.x curses.
|
|
||||||
|
|
||||||
`--with-bsd-curses'
|
|
||||||
If you don't want to use ncurses and are using an Ultrix box, you
|
|
||||||
can use this switch. Be aware that ncurses is a better option
|
|
||||||
than the curses included in Ultrix.
|
|
||||||
|
32
acinclude.m4
32
acinclude.m4
@ -613,38 +613,6 @@ fi
|
|||||||
rm -f conftest*]
|
rm -f conftest*]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_SUNOS_CURSES], [
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="SunOS 4.x /usr/5include curses"
|
|
||||||
AC_MSG_RESULT([Using SunOS 4.x /usr/5include curses])
|
|
||||||
AC_DEFINE(USE_SUNOS_CURSES)
|
|
||||||
AC_DEFINE(NO_COLOR_CURSES)
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
CPPFLAGS="$CPPFLAGS -I/usr/5include"
|
|
||||||
XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
|
|
||||||
AC_MSG_RESULT([Please note that some screen refreshs may fail])
|
|
||||||
AC_MSG_WARN([Reconsider using Slang])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_OSF1_CURSES], [
|
|
||||||
AC_MSG_RESULT([Using OSF1 curses])
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="OSF1 curses"
|
|
||||||
AC_DEFINE(NO_COLOR_CURSES)
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
XCURSES="xcurses.o"
|
|
||||||
LIBS="$LIBS -lcurses"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_SYSV_CURSES], [
|
|
||||||
AC_MSG_RESULT([Using SysV curses])
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
XCURSES=""
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="SysV/curses"
|
|
||||||
LIBS="$LIBS -lcurses"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AC_USE_TERMINFO], [
|
AC_DEFUN([AC_USE_TERMINFO], [
|
||||||
AC_DEFINE(SLANG_TERMINFO)
|
AC_DEFINE(SLANG_TERMINFO)
|
||||||
AC_MSG_RESULT([Using SLang screen manager/terminfo])
|
AC_MSG_RESULT([Using SLang screen manager/terminfo])
|
||||||
|
76
configure.in
76
configure.in
@ -308,51 +308,6 @@ search_ncurses=false
|
|||||||
XCURSES=""
|
XCURSES=""
|
||||||
AC_SUBST(XCURSES)
|
AC_SUBST(XCURSES)
|
||||||
|
|
||||||
dnl AC_ARG_WITH(bsd-curses,
|
|
||||||
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
|
||||||
dnl [search_ncurses=false
|
|
||||||
dnl screen_manager="Ultrix/cursesX"
|
|
||||||
dnl case $host_os in
|
|
||||||
dnl ultrix*)
|
|
||||||
dnl THIS_CURSES=cursesX
|
|
||||||
dnl ;;
|
|
||||||
dnl *)
|
|
||||||
dnl THIS_CURSES=curses
|
|
||||||
dnl ;;
|
|
||||||
dnl esac
|
|
||||||
dnl
|
|
||||||
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
|
||||||
dnl AC_DEFINE(USE_BSD_CURSES)
|
|
||||||
dnl XCURSES="xcurses.o"
|
|
||||||
dnl AC_MSG_RESULT([Please note that some screen refreshs may fail])
|
|
||||||
dnl AC_MSG_WARN([Use of the bsdcurses extension has some])
|
|
||||||
dnl AC_MSG_WARN([display/input problems.])
|
|
||||||
dnl AC_MSG_WARN([Reconsider using xcurses])
|
|
||||||
dnl])
|
|
||||||
|
|
||||||
AC_ARG_WITH(sunos-curses,
|
|
||||||
[--with-sunos-curses Used to force SunOS 4.x curses],[
|
|
||||||
if test x$withval = xyes; then
|
|
||||||
AC_USE_SUNOS_CURSES
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_ARG_WITH(osf1-curses,
|
|
||||||
[--with-osf1-curses Used to force OSF/1 curses],[
|
|
||||||
if test x$withval = xyes; then
|
|
||||||
AC_USE_OSF1_CURSES
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_ARG_WITH(vcurses,
|
|
||||||
[--with-vcurses[=incdir] Used to force SysV curses],
|
|
||||||
[if test x$withval = xyes; then :
|
|
||||||
else
|
|
||||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
|
||||||
fi
|
|
||||||
AC_USE_SYSV_CURSES
|
|
||||||
])
|
|
||||||
|
|
||||||
mouse_lib="xterm only"
|
mouse_lib="xterm only"
|
||||||
LGPM=""
|
LGPM=""
|
||||||
case $host_os in
|
case $host_os in
|
||||||
@ -714,38 +669,9 @@ then
|
|||||||
|
|
||||||
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
|
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl We couldn't find ncurses, try SysV curses
|
|
||||||
dnl
|
|
||||||
if $search_ncurses
|
if $search_ncurses
|
||||||
then
|
then
|
||||||
AC_EGREP_HEADER(init_color, /usr/include/curses.h,
|
:
|
||||||
AC_USE_SYSV_CURSES)
|
|
||||||
AC_EGREP_CPP(USE_NCURSES,[
|
|
||||||
#include <curses.h>
|
|
||||||
#ifdef __NCURSES_H
|
|
||||||
#undef USE_NCURSES
|
|
||||||
USE_NCURSES
|
|
||||||
#endif
|
|
||||||
],[
|
|
||||||
CPPFLAGS="$CPPFLAGS -DRENAMED_NCURSES"
|
|
||||||
AC_DEFINE(USE_NCURSES)
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="ncurses installed as curses"
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Try SunOS 4.x /usr/5{lib,include} ncurses
|
|
||||||
dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
|
|
||||||
dnl should be replaced by a more fine grained selection routine
|
|
||||||
dnl
|
|
||||||
if $search_ncurses
|
|
||||||
then
|
|
||||||
if test -f /usr/5include/curses.h
|
|
||||||
then
|
|
||||||
AC_USE_SUNOS_CURSES
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# check for ncurses version, to properly ifdef mouse-fix
|
# check for ncurses version, to properly ifdef mouse-fix
|
||||||
AC_MSG_CHECKING([for ncurses version])
|
AC_MSG_CHECKING([for ncurses version])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user