mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* configure.in: Use AC_CANONICAL_HOST - "target" is meaningless
for MC. Don't rely on the output of uname - use $host_os.
This commit is contained in:
parent
ecc327e3fd
commit
150920afc6
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-13 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Use AC_CANONICAL_HOST - "target" is meaningless
|
||||||
|
for MC. Don't rely on the output of uname - use $host_os.
|
||||||
|
|
||||||
2001-01-11 Pavel Roskin <proski@gnu.org>
|
2001-01-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Check for ext2 libraries only if VFS is enabled.
|
* configure.in: Check for ext2 libraries only if VFS is enabled.
|
||||||
|
114
configure.in
114
configure.in
@ -3,7 +3,7 @@ dnl Configure.in file for the Midnight Commander
|
|||||||
dnl
|
dnl
|
||||||
AC_INIT(create_vcs)
|
AC_INIT(create_vcs)
|
||||||
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(mc, 4.5.51)
|
AM_INIT_AUTOMAKE(mc, 4.5.51)
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
@ -41,7 +41,6 @@ AC_HEADER_MAJOR
|
|||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_PATH_PROG(AR, ar, ar)
|
AC_PATH_PROG(AR, ar, ar)
|
||||||
|
|
||||||
AC_CHECK_PROG(system,uname,`uname`,unknown)
|
|
||||||
AC_CHECK_PROGS(X11_WWW,netscape arena Mosaic chimera)
|
AC_CHECK_PROGS(X11_WWW,netscape arena Mosaic chimera)
|
||||||
if test x"$X11_WWW" = x; then
|
if test x"$X11_WWW" = x; then
|
||||||
X11_WWW=lynx
|
X11_WWW=lynx
|
||||||
@ -69,11 +68,11 @@ dnl For A/UX. Do not move
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
posix_libs=""
|
posix_libs=""
|
||||||
if test $system = A/UX
|
case $host_os in
|
||||||
then
|
aux*)
|
||||||
posix_libs="-lposix"
|
posix_libs="-lposix"
|
||||||
AC_DEFINE(_POSIX_SOURCE)
|
AC_DEFINE(_POSIX_SOURCE)
|
||||||
fi
|
esac
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_CHECK_HEADERS(unistd.h string.h memory.h crypt.h grp.h limits.h malloc.h)
|
AC_CHECK_HEADERS(unistd.h string.h memory.h crypt.h grp.h limits.h malloc.h)
|
||||||
@ -109,24 +108,19 @@ dnl
|
|||||||
AC_CHECK_FUNCS(getpt)
|
AC_CHECK_FUNCS(getpt)
|
||||||
|
|
||||||
SHADOWLIB=
|
SHADOWLIB=
|
||||||
if test x$system = xLinux; then
|
case $host_os in
|
||||||
AC_CHECK_LIB(shadow,pw_encrypt,[
|
linux*)
|
||||||
shadow_header=no
|
AC_CHECK_LIB(shadow,pw_encrypt,
|
||||||
AC_CHECK_HEADERS(shadow.h)
|
[shadow_header=yes
|
||||||
if test x$ac_cv_header_shadow_h = xyes; then
|
AC_CHECK_HEADERS(shadow.h,,
|
||||||
shadow_header=yes
|
[AC_CHECK_HEADERS(shadow/shadow.h,,
|
||||||
else
|
[shadow_header=no])])
|
||||||
AC_CHECK_HEADERS(shadow/shadow.h)
|
|
||||||
if test x$ac_cv_shadow_shadow_h = xyes; then
|
|
||||||
shadow_header=yes
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test $shadow_header = yes; then
|
if test $shadow_header = yes; then
|
||||||
AC_DEFINE(LINUX_SHADOW)
|
AC_DEFINE(LINUX_SHADOW)
|
||||||
SHADOWLIB=-lshadow
|
SHADOWLIB=-lshadow
|
||||||
fi
|
fi])
|
||||||
])
|
;;
|
||||||
fi
|
esac
|
||||||
AC_SUBST(SHADOWLIB)
|
AC_SUBST(SHADOWLIB)
|
||||||
|
|
||||||
NEED_CRYPT_PROTOTYPE=yes
|
NEED_CRYPT_PROTOTYPE=yes
|
||||||
@ -318,12 +312,14 @@ dnl AC_ARG_WITH(bsd-curses,
|
|||||||
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
||||||
dnl [search_ncurses=false
|
dnl [search_ncurses=false
|
||||||
dnl screen_manager="Ultrix/cursesX"
|
dnl screen_manager="Ultrix/cursesX"
|
||||||
dnl if test $system = ULTRIX
|
dnl case $host_os in
|
||||||
dnl then
|
dnl ultrix*)
|
||||||
dnl THIS_CURSES=cursesX
|
dnl THIS_CURSES=cursesX
|
||||||
dnl else
|
dnl ;;
|
||||||
|
dnl *)
|
||||||
dnl THIS_CURSES=curses
|
dnl THIS_CURSES=curses
|
||||||
dnl fi
|
dnl ;;
|
||||||
|
dnl esac
|
||||||
dnl
|
dnl
|
||||||
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
||||||
dnl AC_DEFINE(USE_BSD_CURSES)
|
dnl AC_DEFINE(USE_BSD_CURSES)
|
||||||
@ -367,9 +363,11 @@ AC_ARG_WITH(vcurses,
|
|||||||
|
|
||||||
mouse_lib="xterm only"
|
mouse_lib="xterm only"
|
||||||
LGPM=""
|
LGPM=""
|
||||||
|
case $host_os in
|
||||||
|
linux*)
|
||||||
AC_ARG_WITH(gpm-mouse,
|
AC_ARG_WITH(gpm-mouse,
|
||||||
[--with-gpm-mouse[=base-dir] Compile with gpm mouse support],[
|
[--with-gpm-mouse[=base-dir] Compile with gpm mouse support (Linux only)],
|
||||||
if test x$withval != xno
|
[if test x$withval != xno
|
||||||
then
|
then
|
||||||
if test x$withval != xyes
|
if test x$withval != xyes
|
||||||
then
|
then
|
||||||
@ -379,19 +377,16 @@ AC_ARG_WITH(gpm-mouse,
|
|||||||
AC_DEFINE(HAVE_LIBGPM)
|
AC_DEFINE(HAVE_LIBGPM)
|
||||||
mouse_lib="GPM and xterm"
|
mouse_lib="GPM and xterm"
|
||||||
LGPM="-lgpm"
|
LGPM="-lgpm"
|
||||||
fi
|
fi],
|
||||||
],[
|
[AC_CHECK_LIB(gpm, Gpm_Repeat,
|
||||||
AC_CHECK_LIB(gpm, Gpm_Repeat,[
|
[AC_DEFINE(HAVE_LIBGPM)
|
||||||
AC_DEFINE(HAVE_LIBGPM)
|
|
||||||
mouse_lib="GPM and xterm"
|
mouse_lib="GPM and xterm"
|
||||||
LGPM="-lgpm"],[
|
LGPM="-lgpm"],
|
||||||
if test $system = Linux
|
[AC_MSG_WARN([libgpm is missing or older than 0.18])],
|
||||||
then
|
$LIBS)
|
||||||
AC_MSG_WARN([libgpm.a is missing or older than 0.18])
|
])
|
||||||
fi
|
;;
|
||||||
], $LIBS)
|
esac
|
||||||
]
|
|
||||||
)
|
|
||||||
AC_SUBST(LGPM)
|
AC_SUBST(LGPM)
|
||||||
|
|
||||||
AC_ARG_WITH(ncurses,
|
AC_ARG_WITH(ncurses,
|
||||||
@ -600,13 +595,15 @@ AC_ARG_WITH(subshell,
|
|||||||
result="yes"
|
result="yes"
|
||||||
fi],
|
fi],
|
||||||
[dnl Default: provide the subshell support on non-ultrix machines
|
[dnl Default: provide the subshell support on non-ultrix machines
|
||||||
if test $system = ULTRIX
|
case $host_os in
|
||||||
then
|
ultrix*)
|
||||||
result=no
|
result=no
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
||||||
result=yes
|
result=yes
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT([$result])
|
AC_MSG_RESULT([$result])
|
||||||
subshell="$result"
|
subshell="$result"
|
||||||
@ -878,8 +875,8 @@ saver_target=""
|
|||||||
vcs=""
|
vcs=""
|
||||||
install_saver="no"
|
install_saver="no"
|
||||||
PAMLIBS=""
|
PAMLIBS=""
|
||||||
if test $system = Linux
|
case $host_os in
|
||||||
then
|
linux*)
|
||||||
saver="install.saver"
|
saver="install.saver"
|
||||||
saver_target="cons.saver"
|
saver_target="cons.saver"
|
||||||
vcs="install.create_vcs"
|
vcs="install.create_vcs"
|
||||||
@ -892,8 +889,8 @@ then
|
|||||||
AC_DEFINE(HAVE_PAM)
|
AC_DEFINE(HAVE_PAM)
|
||||||
PAMLIBS="-lpam -ldl"
|
PAMLIBS="-lpam -ldl"
|
||||||
],[],[-ldl])
|
],[],[-ldl])
|
||||||
|
;;
|
||||||
fi
|
esac
|
||||||
AC_SUBST(saver_target)
|
AC_SUBST(saver_target)
|
||||||
AC_SUBST(saver)
|
AC_SUBST(saver)
|
||||||
AC_SUBST(vcs)
|
AC_SUBST(vcs)
|
||||||
@ -916,24 +913,23 @@ 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
|
case $screen_manager in
|
||||||
changequote(,)dnl
|
SLang*)
|
||||||
[Ss][Ll][Aa][Nn][Gg]*)
|
case $host_os in
|
||||||
changequote([, ])dnl
|
linux*)
|
||||||
if test $system = Linux
|
;;
|
||||||
then
|
*)
|
||||||
echo
|
AC_CHECK_LIB(curses,setupterm,
|
||||||
else
|
[AC_TRY_COMPILE([
|
||||||
AC_CHECK_LIB(curses,setupterm,[
|
|
||||||
AC_TRY_COMPILE([
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <term.h>],[
|
#include <term.h>],[
|
||||||
if (key_end == parm_insert_line)
|
if (key_end == parm_insert_line)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
],[
|
],
|
||||||
LIBS="$LIBS -lcurses"
|
[LIBS="$LIBS -lcurses"
|
||||||
AC_DEFINE(USE_SETUPTERM)])])
|
AC_DEFINE(USE_SETUPTERM)])
|
||||||
fi
|
])
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user