mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* configure.in: Introduce a new variable screen_type that is
either "slang" or "ncurses" without additional text. Use it instead of screen_manager whenever possible. Fix text in AC_NCURSES call, use m4 quotes and move shell quotes into the macro. * acinclude.m4: Likewise. Reported by Thomas Dickey <dickey@herndon4.his.com>
This commit is contained in:
parent
50f4f7cb8e
commit
727898de19
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2002-02-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Introduce a new variable screen_type that is
|
||||||
|
either "slang" or "ncurses" without additional text. Use it
|
||||||
|
instead of screen_manager whenever possible. Fix text in
|
||||||
|
AC_NCURSES call, use m4 quotes and move shell quotes into the
|
||||||
|
macro.
|
||||||
|
* acinclude.m4: Likewise.
|
||||||
|
Reported by Thomas Dickey <dickey@herndon4.his.com>
|
||||||
|
|
||||||
2002-01-28 Petr Kozelka <pkozelka@email.cz>
|
2002-01-28 Petr Kozelka <pkozelka@email.cz>
|
||||||
|
|
||||||
* syntax/Syntax: Known Delphi/Kylix source file extensions
|
* syntax/Syntax: Known Delphi/Kylix source file extensions
|
||||||
|
@ -701,6 +701,7 @@ AC_DEFUN([AC_WITH_SLANG], [
|
|||||||
AC_DEFINE(HAVE_SLANG, 1,
|
AC_DEFINE(HAVE_SLANG, 1,
|
||||||
[Define to use S-Lang library for screen management])
|
[Define to use S-Lang library for screen management])
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
|
screen_type="slang"
|
||||||
if $slang_use_system_installed_lib
|
if $slang_use_system_installed_lib
|
||||||
then
|
then
|
||||||
AC_DEFINE(HAVE_SYSTEM_SLANG, 1,
|
AC_DEFINE(HAVE_SYSTEM_SLANG, 1,
|
||||||
@ -777,7 +778,8 @@ AC_DEFUN([AC_NCURSES], [
|
|||||||
MCLIBS="$MCLIBS $3"
|
MCLIBS="$MCLIBS $3"
|
||||||
CPPFLAGS="$CPPFLAGS $4"
|
CPPFLAGS="$CPPFLAGS $4"
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
screen_manager=$5
|
screen_type="ncurses"
|
||||||
|
screen_manager="$5"
|
||||||
AC_DEFINE(USE_NCURSES, 1,
|
AC_DEFINE(USE_NCURSES, 1,
|
||||||
[Define to use ncurses for screen management])
|
[Define to use ncurses for screen management])
|
||||||
fi
|
fi
|
||||||
|
41
configure.in
41
configure.in
@ -296,7 +296,12 @@ then
|
|||||||
vfs_type="Midnight Commander Virtual File System"
|
vfs_type="Midnight Commander Virtual File System"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl This should be unadorned "slang" or "ncurses"
|
||||||
|
screen_type=""
|
||||||
|
|
||||||
|
dnl Screen manager name (for the output only)
|
||||||
screen_manager=unknown
|
screen_manager=unknown
|
||||||
|
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
|
|
||||||
mouse_lib="xterm only"
|
mouse_lib="xterm only"
|
||||||
@ -335,6 +340,7 @@ AC_ARG_WITH(ncurses,
|
|||||||
MCLIBS="$MCLIBS -L$withval/lib -lncurses"
|
MCLIBS="$MCLIBS -L$withval/lib -lncurses"
|
||||||
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
|
screen_type="ncurses"
|
||||||
screen_manager="ncurses"
|
screen_manager="ncurses"
|
||||||
AC_DEFINE(USE_NCURSES)
|
AC_DEFINE(USE_NCURSES)
|
||||||
fi
|
fi
|
||||||
@ -616,14 +622,18 @@ if $search_ncurses
|
|||||||
then
|
then
|
||||||
AC_MSG_NOTICE([checking location of ncurses.h file])
|
AC_MSG_NOTICE([checking location of ncurses.h file])
|
||||||
|
|
||||||
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
|
AC_NCURSES(/usr/include, ncurses.h, -lncurses,,
|
||||||
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
|
[ncurses in /usr/include])
|
||||||
AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local")
|
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses,
|
||||||
AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
|
[ncurses in /usr/include/ncurses])
|
||||||
|
AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include,
|
||||||
AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
|
[ncurses in /usr/local])
|
||||||
|
AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses,
|
||||||
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
|
[ncurses in /usr/local/include/ncurses])
|
||||||
|
AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES,
|
||||||
|
[renamed ncurses in /usr/local/include/ncurses])
|
||||||
|
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES,
|
||||||
|
[renamed ncurses in /usr/include/ncurses])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -657,7 +667,7 @@ if test -n "$ncurses_version"; then
|
|||||||
LIBS="$save_LIBS"
|
LIBS="$save_LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$screen_manager" = "xunknown"; then
|
if test "x$screen_type" = "x"; then
|
||||||
AC_WITH_SLANG
|
AC_WITH_SLANG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -709,8 +719,7 @@ dnl We check for the existance of setupterm on curses library
|
|||||||
dnl this is required to load certain definitions on some termcaps
|
dnl this is required to load certain definitions on some termcaps
|
||||||
dnl editions (AIX and OSF/1 I seem to remember).
|
dnl editions (AIX and OSF/1 I seem to remember).
|
||||||
dnl Note that we avoid using setupterm
|
dnl Note that we avoid using setupterm
|
||||||
case $screen_manager in
|
if test "x$screen_type" = xslang; then
|
||||||
SLang*)
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*)
|
linux*)
|
||||||
;;
|
;;
|
||||||
@ -729,8 +738,7 @@ SLang*)
|
|||||||
from `curses' library in S-Lang])])
|
from `curses' library in S-Lang])])
|
||||||
])
|
])
|
||||||
esac
|
esac
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
LIBS="$LIBS $posix_libs"
|
LIBS="$LIBS $posix_libs"
|
||||||
|
|
||||||
@ -796,10 +804,9 @@ AC_CONFIG_COMMANDS(potfiles,
|
|||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
case $screen_manager in
|
if test "x$screen_type" = xslang; then
|
||||||
SLang*)
|
screen_manager="${screen_manager}${slang_term}"
|
||||||
screen_manager="${screen_manager}${slang_term}" ;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
Configuration:
|
Configuration:
|
||||||
|
Loading…
Reference in New Issue
Block a user