1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl Configure.in file for the Midnight Commander
|
|
|
|
dnl
|
|
|
|
AC_INIT(create_vcs)
|
2000-09-16 03:57:10 +04:00
|
|
|
AC_PREREQ(2.13)
|
2001-01-13 09:55:24 +03:00
|
|
|
AC_CANONICAL_HOST
|
2000-09-16 03:57:10 +04:00
|
|
|
|
2000-08-24 18:13:00 +04:00
|
|
|
AM_INIT_AUTOMAKE(mc, 4.5.51)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2000-09-12 23:31:56 +04:00
|
|
|
AM_MAINTAINER_MODE
|
2000-08-24 18:13:00 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_AWK
|
|
|
|
if test x"$AWK" = x; then
|
|
|
|
AWK=":"
|
|
|
|
AWK_VAR_OPTION=""
|
|
|
|
dep=slowdep
|
|
|
|
else
|
|
|
|
dep=fastdep
|
|
|
|
|
|
|
|
# test whether awk needs -v for variables (e.g. Solaris) or not (e.g. SunOs 4)
|
|
|
|
if test x"`echo | $AWK 'BEGIN { print variable; exit }' variable=123`" = x123; then
|
|
|
|
AWK_VAR_OPTION=""
|
|
|
|
else
|
|
|
|
AWK_VAR_OPTION="-v"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(AWK_VAR_OPTION)
|
|
|
|
AC_SUBST(dep)
|
|
|
|
AC_PROG_GNU_MAKE
|
|
|
|
|
|
|
|
AC_AIX
|
|
|
|
AC_MINIX
|
|
|
|
AC_ISC_POSIX
|
2001-03-08 05:07:06 +03:00
|
|
|
dnl It's a hack to accomodate both Autoconf 2.13 and the 2.49x series,
|
|
|
|
dnl It's needed until Autoconf 2.50 is released.
|
|
|
|
ifdef([AC_PROG_CC_STDC], [AC_PROG_CC_STDC], [AM_PROG_CC_STDC])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_HEADER_MAJOR
|
|
|
|
AC_C_CONST
|
|
|
|
AC_PATH_PROG(AR, ar, ar)
|
|
|
|
|
|
|
|
AC_CHECK_PROGS(X11_WWW,netscape arena Mosaic chimera)
|
|
|
|
if test x"$X11_WWW" = x; then
|
|
|
|
X11_WWW=lynx
|
|
|
|
fi
|
|
|
|
|
2001-01-26 16:28:40 +03:00
|
|
|
ALL_LINGUAS="az ca cs da de el es es_ES fi fr hu it ja ko nl no pl pt_BR ro ru sl sv sk uk ta tr wa zh_TW.Big5 zh_CN.GB2312"
|
1999-07-07 05:13:05 +04:00
|
|
|
|
2000-08-30 01:23:44 +04:00
|
|
|
AM_GNOME_GETTEXT
|
1999-07-07 05:13:05 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
2000-09-16 03:57:10 +04:00
|
|
|
dnl Enforce coding standards
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
2000-09-16 03:57:10 +04:00
|
|
|
if test "x$GCC" = xyes; then
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
1998-04-07 23:08:31 +04:00
|
|
|
|
1998-10-14 06:56:18 +04:00
|
|
|
dnl
|
|
|
|
dnl We now use glib
|
|
|
|
dnl
|
2001-01-11 21:57:44 +03:00
|
|
|
AM_PATH_GLIB(1.2.0,,[AC_MSG_ERROR([Test for GLIB failed. MC requires GLIB.])])
|
1998-10-14 06:56:18 +04:00
|
|
|
LIBS="$LIBS $GLIB_LIBS"
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl For A/UX. Do not move
|
|
|
|
dnl
|
|
|
|
|
|
|
|
posix_libs=""
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
aux*)
|
1998-02-27 07:54:42 +03:00
|
|
|
posix_libs="-lposix"
|
|
|
|
AC_DEFINE(_POSIX_SOURCE)
|
2001-01-13 09:55:24 +03:00
|
|
|
esac
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
2001-02-20 19:29:23 +03:00
|
|
|
AC_CHECK_HEADERS([unistd.h string.h memory.h crypt.h grp.h limits.h \
|
|
|
|
malloc.h stdlib.h termios.h utime.h fcntl.h sys/statfs.h \
|
2001-02-20 19:31:02 +03:00
|
|
|
sys/time.h sys/timeb.h])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-02-20 19:29:23 +03:00
|
|
|
AC_HEADER_TIME
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_SHORT_D_NAME_LEN
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
dnl Missing structure components
|
|
|
|
AC_STRUCT_ST_BLKSIZE
|
|
|
|
AC_STRUCT_ST_BLOCKS
|
|
|
|
AC_STRUCT_ST_RDEV
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check availability of some functions
|
|
|
|
dnl
|
|
|
|
|
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
Add macro %e it is error file name
Add macro %i it is cursor column indent of spaces, only for edit
Add macro %y, it is syntax of current file in editor, only for edit
Add condition y , it is syntax pattern of current file in edit
Add macro %x it is extension of current file
Add macro %m it is current menu filename
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
(the message of David H. Martin <dmartina@usa.net>)
2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add condition (x filename) into mc.menu .
for "Open next a free console" and like.
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
src/user.c: fix segfault in chunk_alloc of glibc, when into condition
of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/edit.c:
Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
* gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
Marked block is access now from an user edit menu
Access ~/.cedit/cooledit.block for insert to cursor place from
user edit menu.
Created system cedit.menu
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editdraw.c:
Improved a status string of cool editor for best understand,
and to add char,hex view.
2000-05-04 Richard Hestilow <hestgray@ionet.net>
* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 05:18:27 +04:00
|
|
|
AC_CHECK_FUNCS(strerror statfs getwd strcasecmp strncasecmp strcoll strftime)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CHECK_FUNCS(strdup memmove pwdauth truncate initgroups putenv)
|
|
|
|
AC_CHECK_FUNCS(memset memcpy tcsetattr tcgetattr cfgetospeed)
|
|
|
|
AC_CHECK_FUNCS(sigaction sigemptyset sigprocmask sigaddset)
|
1999-02-01 02:32:28 +03:00
|
|
|
AC_CHECK_FUNCS(sysconf setuid setreuid)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-05-17 09:51:44 +04:00
|
|
|
dnl
|
|
|
|
dnl getpt is a GNU Extension (glibc 2.1.x)
|
|
|
|
dnl
|
|
|
|
AC_CHECK_FUNCS(getpt)
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
SHADOWLIB=
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
AC_CHECK_LIB(shadow,pw_encrypt,
|
|
|
|
[shadow_header=yes
|
|
|
|
AC_CHECK_HEADERS(shadow.h,,
|
|
|
|
[AC_CHECK_HEADERS(shadow/shadow.h,,
|
|
|
|
[shadow_header=no])])
|
|
|
|
if test $shadow_header = yes; then
|
|
|
|
AC_DEFINE(LINUX_SHADOW)
|
|
|
|
SHADOWLIB=-lshadow
|
|
|
|
fi])
|
|
|
|
;;
|
|
|
|
esac
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(SHADOWLIB)
|
|
|
|
|
|
|
|
NEED_CRYPT_PROTOTYPE=yes
|
|
|
|
if test x$ac_cv_header_crypt_h = xyes; then
|
|
|
|
AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy");],[
|
|
|
|
NEED_CRYPT_PROTOTYPE=no])
|
|
|
|
else
|
|
|
|
if test x$ac_cv_header_unistd_h = xyes; then
|
|
|
|
AC_TRY_WARNINGS([#include <unistd.h>], [char *p = crypt("xxx", "yyy");],[
|
|
|
|
NEED_CRYPT_PROTOTYPE=no])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x$NEED_CRYPT_PROTOTYPE=xyes; then
|
|
|
|
AC_DEFINE(NEED_CRYPT_PROTOTYPE)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl AIX and Sequent need <sys/select.h> for fd_set
|
|
|
|
dnl
|
|
|
|
AC_CHECK_HEADERS(sys/select.h)
|
|
|
|
|
|
|
|
dnl
|
1998-12-02 08:18:20 +03:00
|
|
|
dnl On SCO and some SVR4, crypt is on libcrypt.a
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl grantpt in libpt.a
|
|
|
|
dnl
|
1998-12-02 08:18:20 +03:00
|
|
|
LCRYPT=""
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CHECK_FUNCS(crypt, , [
|
1998-12-02 08:18:20 +03:00
|
|
|
AC_CHECK_LIB(crypt, crypt, LCRYPT="-lcrypt",[
|
|
|
|
AC_CHECK_LIB(crypt_i, crypt, LCRYPT="-lcrypt_i")])])
|
|
|
|
AC_SUBST(LCRYPT)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-16 03:57:10 +04:00
|
|
|
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl libintl.a required on SCO to provide proper NLS support
|
|
|
|
dnl (using native cc links it by default)
|
|
|
|
dnl
|
|
|
|
if test x$GCC = xyes; then
|
|
|
|
AC_CHECK_LIB(intl, tolower)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl replacing lstat with statlstat on sco makes it more portable between
|
|
|
|
dnl sco clones
|
|
|
|
AC_CHECK_FUNCS(statlstat)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl If running under AIX, AC_AIX does not tell us that
|
|
|
|
dnl
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for AIX defines])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_EGREP_CPP(yes,
|
|
|
|
[#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
|
|
|
|
yes
|
|
|
|
#endif
|
|
|
|
], [
|
|
|
|
AC_DEFINE(IS_AIX)
|
|
|
|
AC_MSG_RESULT(yes)
|
2001-01-11 21:57:44 +03:00
|
|
|
], [AC_MSG_RESULT(no)])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl This hack is here until autoconf adds it
|
|
|
|
dnl Needed for Unixware: getmntent is on libgen.a
|
|
|
|
dnl
|
|
|
|
AC_CHECK_LIB(gen, getmntent, [LIBS="-lgen $LIBS"])
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl This is from GNU fileutils, check aclocal.m4 for more information
|
|
|
|
dnl
|
|
|
|
AC_GET_FS_INFO
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Missing typedefs and replacements
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_TYPE_MODE_T
|
|
|
|
AC_CHECK_TYPE(umode_t, int)
|
|
|
|
AC_CHECK_TYPE(off_t, long)
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_UID_T
|
1998-03-23 20:49:04 +03:00
|
|
|
AC_CHECK_TYPE(nlink_t, unsigned int)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Cool hack, but we don't use it currently
|
|
|
|
dnl
|
2001-01-11 21:57:44 +03:00
|
|
|
dnl AC_MSG_CHECKING([for token pasting method])
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl AC_EGREP_CPP(portable,[
|
|
|
|
dnl #define tken(a, b) a##b
|
|
|
|
dnl tken(port, able)
|
|
|
|
dnl ], [AC_DEFINE(HAVE_PORTABLE_TOKEN_PASTING)
|
|
|
|
dnl AC_MSG_RESULT(portable)
|
|
|
|
dnl ], [
|
|
|
|
dnl AC_MSG_RESULT(non-portable)
|
|
|
|
dnl ])
|
|
|
|
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
1999-04-21 23:18:31 +04:00
|
|
|
dnl
|
|
|
|
dnl X11 support in the textmode edition.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl These variables are only used when building the text edition MC binary
|
|
|
|
MCCFLAGS=""
|
|
|
|
MCLIBS=""
|
|
|
|
AC_SUBST(MCCFLAGS)
|
|
|
|
AC_SUBST(MCLIBS)
|
|
|
|
|
|
|
|
textmode_x11_support="no"
|
|
|
|
AC_ARG_WITH(tm-x-support,
|
|
|
|
[--with-tm-x-support Add X Window System support to the text edition],
|
2001-01-11 21:57:44 +03:00
|
|
|
[if test x$withval = xyes; then
|
1999-04-21 23:18:31 +04:00
|
|
|
MCCFLAGS="$X_CFLAGS"
|
|
|
|
MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
|
|
|
|
AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT)
|
|
|
|
textmode_x11_support="yes"
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1999-04-21 23:18:31 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl Network related functions
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_CHECK_LIB(nsl, t_accept)
|
|
|
|
AC_CHECK_LIB(socket, socket)
|
|
|
|
|
|
|
|
have_socket=no
|
|
|
|
AC_CHECK_FUNCS(socket, have_socket=yes)
|
|
|
|
if test $have_socket = no; then
|
|
|
|
# socket is not in the default libraries. See if it's in some other.
|
|
|
|
for lib in bsd socket inet; do
|
|
|
|
AC_CHECK_LIB($lib, socket, [
|
|
|
|
LIBS="$LIBS -l$lib"
|
|
|
|
have_socket=yes
|
|
|
|
AC_DEFINE(HAVE_SOCKET)
|
|
|
|
break])
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
have_gethostbyname=no
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_CHECK_FUNC(gethostbyname, [have_gethostbyname=yes])
|
1998-02-27 07:54:42 +03:00
|
|
|
if test $have_gethostbyname = no; then
|
|
|
|
# gethostbyname is not in the default libraries. See if it's in some other.
|
|
|
|
for lib in bsd socket inet; do
|
|
|
|
AC_CHECK_LIB($lib, gethostbyname, [LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(socketpair)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Sequent wants getprocessstats
|
|
|
|
dnl
|
|
|
|
AC_CHECK_LIB(seq, get_process_stats, [
|
|
|
|
LIBS="$LIBS -lseq"
|
|
|
|
AC_DEFINE(HAVE_GET_PROCESS_STATS)])
|
|
|
|
|
1998-07-24 10:39:59 +04:00
|
|
|
GNOME_VFS_CHECKS
|
|
|
|
NETFILES=
|
1998-02-27 07:54:42 +03:00
|
|
|
if test $have_socket = yes; then
|
1998-07-24 10:39:59 +04:00
|
|
|
NETFILES="\$(NETFILES)"
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
AC_SUBST(NETFILES)
|
|
|
|
|
1999-03-29 09:06:50 +04:00
|
|
|
LIBVFS=""
|
|
|
|
LVFS=""
|
|
|
|
fastdepvfs=""
|
|
|
|
vfs_type="normal"
|
|
|
|
if test $use_vfs = yes
|
|
|
|
then
|
|
|
|
LIBVFS="libvfs-mc.a"
|
|
|
|
LVFS="-lvfs-mc"
|
|
|
|
fastdepvfs=fastdepvfs
|
|
|
|
MCCPPFLAGS="$MCCPPFLAGS -I\$(vfsdir)"
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([Using the VFS switch code])
|
1999-03-29 09:06:50 +04:00
|
|
|
vfs_type="Midnight Commander Virtual File System"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBVFS)
|
|
|
|
AC_SUBST(LVFS)
|
|
|
|
AC_SUBST(fastdepvfs)
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
screen_manager=unknown
|
|
|
|
search_ncurses=false
|
|
|
|
|
|
|
|
XCURSES=""
|
|
|
|
AC_SUBST(XCURSES)
|
|
|
|
|
|
|
|
dnl AC_ARG_WITH(bsd-curses,
|
|
|
|
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
2001-01-11 21:57:44 +03:00
|
|
|
dnl [search_ncurses=false
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl screen_manager="Ultrix/cursesX"
|
2001-01-13 09:55:24 +03:00
|
|
|
dnl case $host_os in
|
|
|
|
dnl ultrix*)
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl THIS_CURSES=cursesX
|
2001-01-13 09:55:24 +03:00
|
|
|
dnl ;;
|
|
|
|
dnl *)
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl THIS_CURSES=curses
|
2001-01-13 09:55:24 +03:00
|
|
|
dnl ;;
|
|
|
|
dnl esac
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
|
|
|
dnl AC_DEFINE(USE_BSD_CURSES)
|
|
|
|
dnl XCURSES="xcurses.o"
|
2001-01-11 21:57:44 +03:00
|
|
|
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])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_ARG_WITH(sco,
|
|
|
|
[--with-sco Use this to turn on SCO-specific code],[
|
|
|
|
if test x$withval = xyes; then
|
|
|
|
AC_DEFINE(SCO_FLAVOR)
|
|
|
|
CFLAGS="$CFLAGS -D_SVID3"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
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],
|
2001-01-11 21:57:44 +03:00
|
|
|
[if test x$withval = xyes; then :
|
1998-02-27 07:54:42 +03:00
|
|
|
else
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$withval"
|
|
|
|
fi
|
|
|
|
AC_USE_SYSV_CURSES
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
mouse_lib="xterm only"
|
1998-12-02 08:18:20 +03:00
|
|
|
LGPM=""
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
AC_ARG_WITH(gpm-mouse,
|
|
|
|
[--with-gpm-mouse[=base-dir] Compile with gpm mouse support (Linux only)],
|
|
|
|
[if test x$withval != xno
|
1998-02-27 07:54:42 +03:00
|
|
|
then
|
|
|
|
if test x$withval != xyes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -L$withval/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
|
|
|
fi
|
|
|
|
AC_DEFINE(HAVE_LIBGPM)
|
|
|
|
mouse_lib="GPM and xterm"
|
1998-12-02 08:18:20 +03:00
|
|
|
LGPM="-lgpm"
|
2001-01-13 09:55:24 +03:00
|
|
|
fi],
|
|
|
|
[AC_CHECK_LIB(gpm, Gpm_Repeat,
|
|
|
|
[AC_DEFINE(HAVE_LIBGPM)
|
1998-02-27 07:54:42 +03:00
|
|
|
mouse_lib="GPM and xterm"
|
2001-01-13 09:55:24 +03:00
|
|
|
LGPM="-lgpm"],
|
|
|
|
[AC_MSG_WARN([libgpm is missing or older than 0.18])],
|
|
|
|
$LIBS)
|
|
|
|
])
|
|
|
|
;;
|
|
|
|
esac
|
1998-12-02 08:18:20 +03:00
|
|
|
AC_SUBST(LGPM)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_ARG_WITH(ncurses,
|
|
|
|
[--with-ncurses[=base-dir] Compile with ncurses/locate base dir],
|
2001-01-11 21:57:44 +03:00
|
|
|
[if test x$withval = xyes
|
1998-02-27 07:54:42 +03:00
|
|
|
then
|
|
|
|
search_ncurses=true
|
|
|
|
else
|
|
|
|
LIBS="$LIBS -L$withval/lib -lncurses"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
|
|
|
search_ncurses=false
|
|
|
|
screen_manager="ncurses"
|
|
|
|
AC_DEFINE(USE_NCURSES)
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_ARG_WITH(hsc,
|
|
|
|
[--with-hsc Compile with support for the HSC firewall],
|
2001-01-11 21:57:44 +03:00
|
|
|
[if test x$withval = xyes; then
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_DEFINE(HSC_PROXY)
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check for Gnome
|
|
|
|
dnl
|
1998-12-31 04:18:31 +03:00
|
|
|
mx=""
|
1998-02-27 07:54:42 +03:00
|
|
|
gmcdep=""
|
1998-09-25 22:16:57 +04:00
|
|
|
libgtkedit=""
|
2000-08-23 23:47:13 +04:00
|
|
|
xvers="none"
|
1999-02-11 08:52:55 +03:00
|
|
|
|
1998-03-20 05:54:06 +03:00
|
|
|
GNOME_INIT_HOOK([
|
1998-12-31 04:18:31 +03:00
|
|
|
mx=mx
|
1998-02-27 07:54:42 +03:00
|
|
|
gmcdep=gmcdep
|
1998-09-25 22:16:57 +04:00
|
|
|
libgtkedit="libgtkedit.a"
|
1998-02-27 07:54:42 +03:00
|
|
|
if test x"$xvers" = xnone; then
|
|
|
|
xvers="Gnome"
|
|
|
|
else
|
|
|
|
xvers="Gnome+$xvers"
|
|
|
|
fi
|
1999-09-14 09:17:30 +04:00
|
|
|
gnomeicondir=`gnome-config --datadir`/pixmaps
|
2000-06-20 23:50:31 +04:00
|
|
|
|
|
|
|
dnl Check for new enough gnome-libs
|
|
|
|
CFLAGS_save=$CFLAGS
|
|
|
|
LIBS_save=$LIBS
|
|
|
|
CFLAGS=`gnome-config --cflags gnomeui`
|
|
|
|
LIBS=`gnome-config --libs gnomeui`
|
|
|
|
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file,
|
|
|
|
[AC_DEFINE(HAVE_GNOME_WINDOW_ICON)])
|
2000-06-20 23:50:31 +04:00
|
|
|
|
|
|
|
CFLAGS=$CFLAGS_save
|
|
|
|
LIBS=$LIBS_save
|
1998-03-20 05:54:06 +03:00
|
|
|
])
|
1999-02-11 08:52:55 +03:00
|
|
|
AC_SUBST(gnomeicondir)
|
1998-12-31 04:18:31 +03:00
|
|
|
AC_SUBST(mx)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(gmcdep)
|
1998-09-25 22:16:57 +04:00
|
|
|
AC_SUBST(libgtkedit)
|
1998-12-03 02:44:06 +03:00
|
|
|
AC_SUBST(GNOMEGNORBA_LIBS)
|
2000-08-25 01:19:54 +04:00
|
|
|
AM_CONDITIONAL(GNOME, test x"$mx" = xmx)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check for the -mandoc package
|
|
|
|
dnl
|
|
|
|
AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
|
|
|
|
if $HAVE_nroff; then
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for manual formatting macros])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CACHE_VAL(ac_cv_mandoc, [
|
|
|
|
nroff -mandoc < /dev/null > /dev/null 2>&1 /dev/null
|
|
|
|
if test $? = 0
|
|
|
|
then
|
|
|
|
ac_cv_mandoc=-mandoc
|
|
|
|
else
|
|
|
|
ac_cv_mandoc=-man
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
MANDOC=$ac_cv_mandoc
|
|
|
|
AC_MSG_RESULT($MANDOC)
|
|
|
|
else
|
|
|
|
MANDOC=-man
|
|
|
|
fi
|
|
|
|
AC_SUBST(MANDOC)
|
|
|
|
|
|
|
|
dnl
|
1999-09-20 03:09:07 +04:00
|
|
|
dnl Check if nroff accepts -Tlatin1 or -Tascii
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
if $HAVE_nroff; then
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CACHE_VAL(ac_cv_nroff_tascii, [
|
1999-09-20 03:09:07 +04:00
|
|
|
nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
|
1998-02-27 07:54:42 +03:00
|
|
|
if test $? = 0
|
|
|
|
then
|
1999-09-20 03:09:07 +04:00
|
|
|
ac_cv_nroff_tascii=" -Tlatin1"
|
1998-02-27 07:54:42 +03:00
|
|
|
else
|
1999-09-20 03:09:07 +04:00
|
|
|
nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null
|
|
|
|
if test $? = 0
|
|
|
|
then
|
|
|
|
ac_cv_nroff_tascii=" -Tascii"
|
|
|
|
else
|
|
|
|
ac_cv_nroff_tascii=""
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
])
|
2000-09-18 05:55:31 +04:00
|
|
|
if test "x$ac_cv_nroff_tascii" = x; then
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes,$ac_cv_nroff_tascii])
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
TROFFASCII="$ac_cv_nroff_tascii"
|
|
|
|
AC_SUBST(TROFFASCII)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check for - option to file
|
|
|
|
dnl
|
|
|
|
AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
|
|
|
|
if $HAVE_FILECMD; then
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for - option to file command])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CACHE_VAL(ac_cv_filestdin, [
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
/* A comment */
|
|
|
|
#if 0
|
|
|
|
#endif
|
|
|
|
void main(void)
|
|
|
|
{ return; }
|
|
|
|
EOF
|
|
|
|
changequote(, )
|
|
|
|
cat > conftest.sed <<EOF
|
|
|
|
s/^[^:]*:[\ \ ]*//
|
|
|
|
s/[\ \ ]*$//
|
|
|
|
EOF
|
|
|
|
filehyphen_1=`file conftest.c 2>/dev/null | sed -f conftest.sed`
|
|
|
|
filehyphen_2=`cat conftest.c | file - 2>/dev/null | sed -f conftest.sed`
|
|
|
|
if test "$filehyphen_1" = "$filehyphen_2"; then
|
|
|
|
ac_cv_filestdin=yes
|
|
|
|
else
|
|
|
|
ac_cv_filestdin=no
|
|
|
|
fi
|
|
|
|
changequote([, ])
|
|
|
|
rm conftest.c conftest.sed
|
|
|
|
unset filehyphen_1
|
|
|
|
unset filehyphen_2
|
|
|
|
])
|
|
|
|
|
|
|
|
if test x$ac_cv_filestdin = xyes; then
|
|
|
|
AC_DEFINE(FILE_STDIN)
|
|
|
|
fi
|
|
|
|
filestdin=$ac_cv_filestdin
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([$filestdin])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check for -L option to file
|
|
|
|
dnl
|
|
|
|
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for -L option to file command])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CACHE_VAL(ac_cv_filel, [
|
|
|
|
file -L . > /dev/null 2>&1
|
|
|
|
if test $? = 0
|
|
|
|
then
|
|
|
|
ac_cv_filel=yes
|
|
|
|
else
|
|
|
|
ac_cv_filel=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
if test x$ac_cv_filel = xyes; then
|
|
|
|
AC_DEFINE(FILE_L)
|
|
|
|
fi
|
|
|
|
filel=$ac_cv_filel
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([$filel])
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check to see if grep program allowes dash to denote stdin
|
|
|
|
dnl
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for - option to grep command])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CACHE_VAL(ac_cv_grep_stdin, [
|
|
|
|
grep ac_cv_grep_stdin - > /dev/null 2>&1 < ./configure
|
|
|
|
if test $? = 0; then
|
|
|
|
ac_cv_grep_stdin=yes
|
|
|
|
else
|
|
|
|
ac_cv_grep_stdin=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
if test x$ac_cv_grep_stdin = xyes; then
|
|
|
|
AC_DEFINE(GREP_STDIN)
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([$ac_cv_grep_stdin])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl The subshell support
|
|
|
|
dnl
|
|
|
|
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for subshell support])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_ARG_WITH(subshell,
|
|
|
|
[--with-subshell If you want to use a concurrent shell],
|
2001-01-11 21:57:44 +03:00
|
|
|
[result=no
|
1998-02-27 07:54:42 +03:00
|
|
|
if test x$withval = xoptional
|
|
|
|
then
|
|
|
|
AC_DEFINE(SUBSHELL_OPTIONAL)
|
|
|
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
|
|
|
result="optional"
|
|
|
|
fi
|
|
|
|
if test x$withval = xyes
|
|
|
|
then
|
|
|
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
|
|
|
result="yes"
|
2001-01-11 21:57:44 +03:00
|
|
|
fi],
|
|
|
|
[dnl Default: provide the subshell support on non-ultrix machines
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
ultrix*)
|
1998-02-27 07:54:42 +03:00
|
|
|
result=no
|
2001-01-13 09:55:24 +03:00
|
|
|
;;
|
|
|
|
*)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
|
|
|
result=yes
|
2001-01-13 09:55:24 +03:00
|
|
|
;;
|
|
|
|
esac
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
|
|
|
AC_MSG_RESULT([$result])
|
1998-02-27 07:54:42 +03:00
|
|
|
subshell="$result"
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Check for GCC
|
|
|
|
dnl
|
|
|
|
if test x$GCC = x
|
|
|
|
then
|
|
|
|
AC_DEFINE(OLD_TOOLS)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
2000-09-16 03:57:10 +04:00
|
|
|
dnl Memory Allocation Debugger
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
mem_debug="none"
|
2000-09-16 03:57:10 +04:00
|
|
|
AC_ARG_WITH(mad,
|
|
|
|
[--with-mad Developers only: activates MAD (memory debugger)],
|
1998-02-27 07:54:42 +03:00
|
|
|
[if test x$withval = xyes; then
|
|
|
|
mem_debug="Janne's MAD library"
|
|
|
|
AC_DEFINE(HAVE_MAD)
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([compiling with memory leak detector])
|
1998-02-27 07:54:42 +03:00
|
|
|
fi])
|
|
|
|
|
|
|
|
dnl
|
2000-09-16 03:57:10 +04:00
|
|
|
dnl Electric Fence - another memory debugger
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
AC_ARG_WITH(efence,
|
2000-09-16 03:57:10 +04:00
|
|
|
[--with-efence Developers only: activates Electric Fence],
|
1998-02-27 07:54:42 +03:00
|
|
|
[if test x$withval = xyes; then
|
|
|
|
LIBS="$LIBS -lefence"
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([compiling with Electric fence])
|
1998-02-27 07:54:42 +03:00
|
|
|
mem_debug="Electric Fence"
|
|
|
|
fi])
|
|
|
|
|
1998-04-02 23:57:59 +04:00
|
|
|
INTLSUB=""
|
1998-05-14 04:13:36 +04:00
|
|
|
LINTL=""
|
1998-04-02 23:57:59 +04:00
|
|
|
if test x$USE_NLS = xyes; then
|
1998-06-01 16:52:18 +04:00
|
|
|
if test x$USE_INCLUDED_LIBINTL = xyes; then
|
2000-09-18 08:57:29 +04:00
|
|
|
CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl"
|
|
|
|
LINTL="-L\$(top_builddir)/intl -lintl"
|
1998-04-02 23:57:59 +04:00
|
|
|
fi
|
|
|
|
INTLSUB=intl
|
|
|
|
fi
|
|
|
|
AC_SUBST(INTLSUB)
|
1998-05-14 04:13:36 +04:00
|
|
|
AC_SUBST(LINTL)
|
1998-04-02 23:57:59 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl To force mmap support
|
|
|
|
dnl We use only part of the functionality of mmap, so on AIX,
|
|
|
|
dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
|
|
|
|
dnl
|
|
|
|
AC_ARG_WITH(mmap,
|
|
|
|
[--with-mmap To force using the mmap call (AIX)],
|
|
|
|
[if test x$withval = xyes; then
|
|
|
|
AC_DEFINE(HAVE_MMAP)
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([forcing MMAP support])
|
1998-02-27 07:54:42 +03:00
|
|
|
fi])
|
|
|
|
|
|
|
|
slang_check_lib=true
|
|
|
|
slang_term=""
|
|
|
|
slang_use_system_installed_lib=false
|
1998-04-26 05:12:45 +04:00
|
|
|
AC_CHECK_LIB(slang,SLang_init_tty,
|
2001-01-11 21:57:44 +03:00
|
|
|
[AC_CHECK_HEADERS(slang.h)
|
1998-02-27 07:54:42 +03:00
|
|
|
if test x$ac_cv_header_slang_h = xyes
|
|
|
|
then
|
|
|
|
slang_use_system_installed_lib=true
|
|
|
|
slang_check_lib=false
|
|
|
|
else
|
|
|
|
AC_CHECK_HEADERS(slang/slang.h)
|
|
|
|
if test x$ac_cv_header_slang_slang_h = xyes
|
|
|
|
then
|
|
|
|
slang_use_system_installed_lib=true
|
|
|
|
slang_check_lib=false
|
|
|
|
AC_DEFINE(SLANG_H_INSIDE_SLANG_DIR)
|
|
|
|
fi
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_ARG_WITH(terminfo,
|
|
|
|
[--with-terminfo SLANG: Force usage of terminfo],[
|
1999-04-13 23:21:03 +04:00
|
|
|
if test x$withval = xyes; then
|
|
|
|
AC_USE_TERMINFO
|
|
|
|
slang_check_lib=false
|
|
|
|
slang_use_system_installed_lib=false
|
|
|
|
fi]
|
1998-02-27 07:54:42 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
AC_ARG_WITH(termcap,
|
|
|
|
[--with-termcap SLANG: Force usage of termcap],[
|
1999-04-13 23:21:03 +04:00
|
|
|
if test x$withval = xyes; then
|
|
|
|
AC_USE_TERMCAP
|
|
|
|
slang_check_lib=false
|
|
|
|
slang_use_system_installed_lib=false
|
|
|
|
fi]
|
1998-02-27 07:54:42 +03:00
|
|
|
)
|
|
|
|
|
I improved the movement keys of the internal viewer a little bit.
Now in wrap mode the End key and cursor up key behave much better
(e.g. when viewing binary files with lots of wrapped lines).
It's not perfekt but it's better than it used to be.
Tue Apr 28 06:52:24 1998 Norbert Warmuth <k3190@fh-sw.de>
* gnome/gcmd.c (gnome_open_terminal): Changed my_system(1,...) to
my_system(EXECUTE_AS_SHELL,...)
Tue Apr 28 06:06:03 1998 Norbert Warmuth <k3190@fh-sw.de>
* vfs/extfs.c (extfs_open, extfs_close): Changed my_system(1,...)
to my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
copyout in 4.1.32.
Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
* view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
of bottom_first (we mustn't use an already calculated and cached
value because it is invalid for the new mode and the End key would
not move to the end of the file).
* configure.in: Renamed the option `--with-our-slang' to
`--with-included-slang' (this one looks better because we also
have an `--with-included-gettext').
Make the option `--with-ext2undel' recognice a given path.
* cmd.c (view_file_at_line): In plain view (F13) set the default
magic flag to zero in order to view the file content unprocessed
(esp. don't uncompress files if they are compressed). The
view_simple_cmd got broken when the default magic flag in view.c
was changed from 0 to 1.
* view.c (do_view_init, goto_line): Set wrap mode temporary off
to make goto line number work, i.e. `line number' now always means
line number in file and not line number on screen (in wrap mode
one long line wrapped once is displayed in two lines on the screen).
That's important when the viewer is invoked from the find file
dialog to display even in wrap mode approxiamtly the part of the
file where we found the content we searched for.
(move_forward2): In wrap mode lines were sometimes counted wrong
causing cursor up to move more than one line.
(move_backward2): Fixed the movement in wrap mode.
(change_viewer): Always re-init viewer when we have a filename,
i. e. if the viewer is invoked with simple_view_cmd then we can switch
with the F8 key between unprocessed file content und uncompressed
file content.
(view_init): re-init view also when magic flag was altered
1998-04-28 18:19:48 +04:00
|
|
|
AC_ARG_WITH(included-slang,
|
|
|
|
[--with-included-slang SLANG: use the SLang library included here],[
|
1999-04-13 23:21:03 +04:00
|
|
|
if test x$withval = xyes; then
|
1998-02-27 07:54:42 +03:00
|
|
|
slang_use_system_installed_lib=false
|
|
|
|
slang_check_lib=true
|
1999-04-13 23:21:03 +04:00
|
|
|
fi]
|
1998-02-27 07:54:42 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
LIBSLANG=""
|
|
|
|
LSLANG=""
|
|
|
|
fastdepslang=""
|
|
|
|
AC_ARG_WITH(slang,
|
|
|
|
[--with-slang Compile with the slang screen manager],[
|
|
|
|
if test x$withval = xyes; then
|
|
|
|
AC_WITH_SLANG
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST(LIBSLANG)
|
|
|
|
AC_SUBST(LSLANG)
|
|
|
|
AC_SUBST(fastdepslang)
|
|
|
|
|
|
|
|
LIBEDIT_A=""
|
|
|
|
MCEDIT=""
|
|
|
|
LEDIT=""
|
|
|
|
EDIT_msg=""
|
|
|
|
AC_ARG_WITH(edit,
|
|
|
|
[--with-edit Define INTERNAL_EDIT],
|
2001-01-11 21:57:44 +03:00
|
|
|
[if test x$withval = xyes
|
1998-02-27 07:54:42 +03:00
|
|
|
then
|
|
|
|
AC_WITH_EDIT
|
|
|
|
else
|
|
|
|
EDIT_msg="no"
|
2001-01-11 21:57:44 +03:00
|
|
|
fi],
|
|
|
|
[dnl Default: provide the internal editor
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_WITH_EDIT
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(LIBEDIT_A)
|
|
|
|
AC_SUBST(MCEDIT)
|
|
|
|
AC_SUBST(LEDIT)
|
|
|
|
|
|
|
|
AC_ARG_WITH(netrc,
|
|
|
|
[--with-netrc Compile with ftp .netrc support],[
|
1999-04-13 23:21:03 +04:00
|
|
|
if test x$withval = xyes; then
|
|
|
|
AC_DEFINE(USE_NETRC)
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([ftpfs will have .netrc parsing code])
|
1999-04-13 23:21:03 +04:00
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
undelfs_o=""
|
|
|
|
|
2001-01-11 23:54:50 +03:00
|
|
|
if test $use_vfs = yes; then
|
|
|
|
AC_ARG_WITH(ext2undel,
|
1998-02-27 07:54:42 +03:00
|
|
|
[--with-ext2undel Compile with ext2 undelete code],[
|
I improved the movement keys of the internal viewer a little bit.
Now in wrap mode the End key and cursor up key behave much better
(e.g. when viewing binary files with lots of wrapped lines).
It's not perfekt but it's better than it used to be.
Tue Apr 28 06:52:24 1998 Norbert Warmuth <k3190@fh-sw.de>
* gnome/gcmd.c (gnome_open_terminal): Changed my_system(1,...) to
my_system(EXECUTE_AS_SHELL,...)
Tue Apr 28 06:06:03 1998 Norbert Warmuth <k3190@fh-sw.de>
* vfs/extfs.c (extfs_open, extfs_close): Changed my_system(1,...)
to my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
copyout in 4.1.32.
Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
* view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
of bottom_first (we mustn't use an already calculated and cached
value because it is invalid for the new mode and the End key would
not move to the end of the file).
* configure.in: Renamed the option `--with-our-slang' to
`--with-included-slang' (this one looks better because we also
have an `--with-included-gettext').
Make the option `--with-ext2undel' recognice a given path.
* cmd.c (view_file_at_line): In plain view (F13) set the default
magic flag to zero in order to view the file content unprocessed
(esp. don't uncompress files if they are compressed). The
view_simple_cmd got broken when the default magic flag in view.c
was changed from 0 to 1.
* view.c (do_view_init, goto_line): Set wrap mode temporary off
to make goto line number work, i.e. `line number' now always means
line number in file and not line number on screen (in wrap mode
one long line wrapped once is displayed in two lines on the screen).
That's important when the viewer is invoked from the find file
dialog to display even in wrap mode approxiamtly the part of the
file where we found the content we searched for.
(move_forward2): In wrap mode lines were sometimes counted wrong
causing cursor up to move more than one line.
(move_backward2): Fixed the movement in wrap mode.
(change_viewer): Always re-init viewer when we have a filename,
i. e. if the viewer is invoked with simple_view_cmd then we can switch
with the F8 key between unprocessed file content und uncompressed
file content.
(view_init): re-init view also when magic flag was altered
1998-04-28 18:19:48 +04:00
|
|
|
if test x$withval != xno;
|
1998-02-27 07:54:42 +03:00
|
|
|
then
|
I improved the movement keys of the internal viewer a little bit.
Now in wrap mode the End key and cursor up key behave much better
(e.g. when viewing binary files with lots of wrapped lines).
It's not perfekt but it's better than it used to be.
Tue Apr 28 06:52:24 1998 Norbert Warmuth <k3190@fh-sw.de>
* gnome/gcmd.c (gnome_open_terminal): Changed my_system(1,...) to
my_system(EXECUTE_AS_SHELL,...)
Tue Apr 28 06:06:03 1998 Norbert Warmuth <k3190@fh-sw.de>
* vfs/extfs.c (extfs_open, extfs_close): Changed my_system(1,...)
to my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
copyout in 4.1.32.
Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
* view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
of bottom_first (we mustn't use an already calculated and cached
value because it is invalid for the new mode and the End key would
not move to the end of the file).
* configure.in: Renamed the option `--with-our-slang' to
`--with-included-slang' (this one looks better because we also
have an `--with-included-gettext').
Make the option `--with-ext2undel' recognice a given path.
* cmd.c (view_file_at_line): In plain view (F13) set the default
magic flag to zero in order to view the file content unprocessed
(esp. don't uncompress files if they are compressed). The
view_simple_cmd got broken when the default magic flag in view.c
was changed from 0 to 1.
* view.c (do_view_init, goto_line): Set wrap mode temporary off
to make goto line number work, i.e. `line number' now always means
line number in file and not line number on screen (in wrap mode
one long line wrapped once is displayed in two lines on the screen).
That's important when the viewer is invoked from the find file
dialog to display even in wrap mode approxiamtly the part of the
file where we found the content we searched for.
(move_forward2): In wrap mode lines were sometimes counted wrong
causing cursor up to move more than one line.
(move_backward2): Fixed the movement in wrap mode.
(change_viewer): Always re-init viewer when we have a filename,
i. e. if the viewer is invoked with simple_view_cmd then we can switch
with the F8 key between unprocessed file content und uncompressed
file content.
(view_init): re-init view also when magic flag was altered
1998-04-28 18:19:48 +04:00
|
|
|
if test x$withval != xyes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -L$withval/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_EXT2_UNDEL
|
2000-02-23 10:43:14 +03:00
|
|
|
fi],[
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl Default: detect
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_CHECK_LIB(ext2fs, ext2fs_close, [AC_EXT2_UNDEL],,-lcom_err)
|
2001-01-11 23:54:50 +03:00
|
|
|
])
|
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_SUBST(undelfs_o)
|
|
|
|
|
|
|
|
if $search_ncurses
|
|
|
|
then
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_CHECKING([location of ncurses.h file])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
|
|
|
|
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
|
1998-04-11 06:53:35 +04:00
|
|
|
AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /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, "ncurses on /usr/local/include/ncurses")
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-04-11 06:53:35 +04:00
|
|
|
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")
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
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
|
1998-11-26 15:26:59 +03:00
|
|
|
dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
|
1998-02-27 07:54:42 +03:00
|
|
|
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
|
|
|
|
# check for ncurses version, to properly ifdef mouse-fix
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for ncurses version])
|
1998-02-27 07:54:42 +03:00
|
|
|
ncurses_version=unknown
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
[#]line __oline__ "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#ifdef RENAMED_NCURSES
|
|
|
|
#include <curses.h>
|
|
|
|
#else
|
|
|
|
#include <ncurses.h>
|
|
|
|
#endif
|
|
|
|
#undef VERSION
|
|
|
|
VERSION:NCURSES_VERSION
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
|
|
|
|
egrep "VERSION:" >conftest.out 2>&1; then
|
|
|
|
changequote(,)dnl
|
|
|
|
ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'`
|
|
|
|
changequote([,])dnl
|
|
|
|
fi
|
|
|
|
rm -rf conftext*
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([$ncurses_version])
|
1998-02-27 07:54:42 +03:00
|
|
|
case "$ncurses_version" in
|
|
|
|
changequote(,)dnl
|
|
|
|
4.[01])
|
|
|
|
changequote([,])dnl
|
|
|
|
AC_DEFINE(NCURSES_970530,2)
|
|
|
|
;;
|
|
|
|
1.9.9g)
|
|
|
|
AC_DEFINE(NCURSES_970530,1)
|
|
|
|
;;
|
|
|
|
1*)
|
|
|
|
AC_DEFINE(NCURSES_970530,0)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
1999-01-31 23:28:13 +03:00
|
|
|
|
|
|
|
dnl Ncurses may be linked against libgpm. Change LIBS temporary for
|
|
|
|
dnl check for resizeterm and keyok.
|
|
|
|
dnl
|
|
|
|
SAVED_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS $LGPM"
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_CHECK_FUNCS(resizeterm keyok)
|
1999-01-31 23:28:13 +03:00
|
|
|
LIBS="$SAVED_LIBS"
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
if test "x$screen_manager" = "xunknown"; then
|
|
|
|
AC_WITH_SLANG
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl The variables used for expanding the auto saver.
|
|
|
|
dnl
|
2001-01-13 10:24:13 +03:00
|
|
|
cons_saver=""
|
1998-02-27 07:54:42 +03:00
|
|
|
install_saver="no"
|
|
|
|
PAMLIBS=""
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
linux*)
|
2001-01-13 10:24:13 +03:00
|
|
|
cons_saver="cons.saver"
|
1998-02-27 07:54:42 +03:00
|
|
|
install_saver="yes"
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl On Linux, check for PAM authentication available
|
|
|
|
dnl
|
|
|
|
AC_CHECK_LIB(pam, pam_start, [
|
|
|
|
AC_DEFINE(HAVE_PAM)
|
|
|
|
PAMLIBS="-lpam -ldl"
|
|
|
|
],[],[-ldl])
|
2001-01-13 09:55:24 +03:00
|
|
|
;;
|
|
|
|
esac
|
2001-01-13 10:24:13 +03:00
|
|
|
AC_SUBST(cons_saver)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(PAMLIBS)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl We need sed in order to fix the library files
|
|
|
|
dnl
|
|
|
|
SEDCMD="sed 's/-man/$MANDOC/'"
|
|
|
|
SEDCMD2="sed 's%@prefix@%\$(prefix)%'"
|
|
|
|
AC_SUBST(SEDCMD)
|
|
|
|
AC_SUBST(SEDCMD2)
|
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl This code should be moved to the ac_WITH_SLANG
|
|
|
|
dnl
|
|
|
|
dnl We check for the existance of setupterm on curses library
|
|
|
|
dnl this is required to load certain definitions on some termcaps
|
|
|
|
dnl editions (AIX and OSF/1 I seem to remember).
|
|
|
|
dnl Note that we avoid using setupterm
|
|
|
|
case $screen_manager in
|
2001-01-13 09:55:24 +03:00
|
|
|
SLang*)
|
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_CHECK_LIB(curses,setupterm,
|
|
|
|
[AC_TRY_COMPILE([
|
1998-02-27 07:54:42 +03:00
|
|
|
#include <curses.h>
|
|
|
|
#include <term.h>],[
|
|
|
|
if (key_end == parm_insert_line)
|
|
|
|
return 1;
|
|
|
|
return 0;
|
2001-01-13 09:55:24 +03:00
|
|
|
],
|
|
|
|
[LIBS="$LIBS -lcurses"
|
|
|
|
AC_DEFINE(USE_SETUPTERM)])
|
|
|
|
])
|
|
|
|
esac
|
|
|
|
;;
|
1998-02-27 07:54:42 +03:00
|
|
|
esac
|
|
|
|
|
|
|
|
LIBS="$LIBS $posix_libs"
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
1998-10-26 03:38:32 +03:00
|
|
|
AC_SUBST(MCCPPFLAGS)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
AC_SUBST(LIBS)
|
|
|
|
|
|
|
|
ac_cv_make_with_percent_rules=no
|
|
|
|
if test x$ac_cv_prog_gnu_make = xyes; then
|
|
|
|
PHONY='.PHONY:'
|
2000-08-18 08:16:25 +04:00
|
|
|
DOTDEPEND='-include .depend'
|
1998-02-27 07:54:42 +03:00
|
|
|
WRITEDEP=":"
|
|
|
|
ac_cv_make_with_percent_rules=yes
|
|
|
|
else
|
|
|
|
PHONY='#'
|
|
|
|
DOTDEPEND=""
|
|
|
|
WRITEDEP='sed "/^. \*\*\*Dependencies\*\*\*/,/^. \*\*\*End of dependencies\*\*\*/d" < Makefile > Makefile.conf; { cat Makefile.conf; echo "# ***Dependencies***Do not edit***"; cat .depend; echo "# ***End of dependencies***" } > Makefile; $(RMF) Makefile.conf .depend'
|
|
|
|
fi
|
|
|
|
AC_SUBST(PHONY)
|
|
|
|
AC_SUBST(WRITEDEP)
|
|
|
|
AC_SUBST(DOTDEPEND)
|
2000-09-23 09:14:31 +04:00
|
|
|
|
|
|
|
MCF=./Make.common
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST_FILE(MCF)
|
|
|
|
|
|
|
|
if test x$ac_cv_make_with_percent_rules = xyes; then
|
|
|
|
PCENTRULE=""
|
|
|
|
else
|
|
|
|
PCENTRULE="#"
|
|
|
|
fi
|
|
|
|
AC_SUBST(PCENTRULE)
|
|
|
|
|
1998-03-25 08:16:00 +03:00
|
|
|
dnl
|
2000-02-23 10:43:14 +03:00
|
|
|
dnl Output configuration files
|
1998-03-25 08:16:00 +03:00
|
|
|
dnl
|
2001-02-07 19:41:16 +03:00
|
|
|
dnl It's a hack to accomodate both Autoconf 2.13 and the 2.49x series,
|
|
|
|
dnl It's needed until Autoconf 2.50 is released.
|
|
|
|
ifelse(AC_ACVERSION, [2.13],
|
|
|
|
[mc_subdirs=
|
2001-01-30 19:55:09 +03:00
|
|
|
if test "x$SAMBAFILES" != x; then
|
2001-02-07 19:41:16 +03:00
|
|
|
mc_subdirs=vfs/samba
|
|
|
|
AC_CONFIG_SUBDIRS([$mc_subdirs])
|
|
|
|
fi],
|
|
|
|
[if test "x$SAMBAFILES" != x; then
|
|
|
|
AC_CONFIG_SUBDIRS([vfs/samba])
|
|
|
|
fi])
|
1999-06-22 23:56:36 +04:00
|
|
|
|
1998-03-25 08:16:00 +03:00
|
|
|
AC_OUTPUT([
|
|
|
|
Make.common
|
|
|
|
Makefile
|
1999-02-28 05:52:05 +03:00
|
|
|
mc.spec
|
1998-03-25 08:16:00 +03:00
|
|
|
doc/Makefile
|
1999-06-08 00:49:27 +04:00
|
|
|
doc-gnome/Makefile
|
|
|
|
doc-gnome/C/Makefile
|
2001-01-09 23:54:19 +03:00
|
|
|
doc-gnome/C/figs/Makefile
|
1998-07-24 10:39:59 +04:00
|
|
|
vfs/Makefile:vfs/Make-mc.in
|
2000-09-02 01:34:26 +04:00
|
|
|
vfs/extfs/Makefile
|
1998-03-25 08:16:00 +03:00
|
|
|
lib/Makefile
|
|
|
|
gnome/Makefile
|
1998-12-16 01:42:33 +03:00
|
|
|
gnome/mc.keys.in
|
1998-12-03 02:44:06 +03:00
|
|
|
idl/Makefile
|
1998-03-25 08:16:00 +03:00
|
|
|
src/Makefile
|
|
|
|
slang/Makefile
|
|
|
|
edit/Makefile
|
1998-09-15 00:36:39 +04:00
|
|
|
gtkedit/Makefile
|
1999-03-21 05:10:04 +03:00
|
|
|
syntax/Makefile
|
1998-12-07 05:12:24 +03:00
|
|
|
new_icons/Makefile
|
2000-08-24 18:13:00 +04:00
|
|
|
pc/Makefile
|
1998-03-25 08:16:00 +03:00
|
|
|
|
|
|
|
lib/mc.ext
|
1999-09-23 02:04:45 +04:00
|
|
|
lib/mc.sh
|
|
|
|
lib/mc.csh
|
1998-12-04 03:48:50 +03:00
|
|
|
|
1998-03-25 08:16:00 +03:00
|
|
|
mcfn_install
|
2001-03-08 03:30:47 +03:00
|
|
|
|
|
|
|
vfs/extfs/deb
|
|
|
|
vfs/extfs/ftplist
|
|
|
|
vfs/extfs/lslR
|
|
|
|
vfs/extfs/uar
|
|
|
|
vfs/extfs/ucpio
|
|
|
|
vfs/extfs/ulha
|
|
|
|
vfs/extfs/uha
|
|
|
|
vfs/extfs/urar
|
|
|
|
vfs/extfs/uzoo
|
1998-03-25 08:16:00 +03:00
|
|
|
|
|
|
|
doc/mc.1 doc/mcedit.1 doc/mcserv.8
|
|
|
|
|
|
|
|
intl/Makefile po/Makefile.in
|
|
|
|
],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-04-21 23:18:31 +04:00
|
|
|
if echo "$screen_manager" | grep -q "SLang" ; then
|
1998-02-27 07:54:42 +03:00
|
|
|
screen_manager="${screen_manager}${slang_term}"
|
1999-04-21 23:18:31 +04:00
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
echo "
|
|
|
|
Configuration:
|
|
|
|
|
|
|
|
Source code location: ${srcdir}
|
|
|
|
Compiler: ${CC}
|
|
|
|
Compiler flags: ${CFLAGS}
|
|
|
|
File system: ${vfs_type}
|
|
|
|
${vfs_flags}
|
|
|
|
Text mode screen manager: ${screen_manager}
|
|
|
|
Install console saver: ${install_saver}
|
|
|
|
Text mode mouse library: ${mouse_lib}
|
1999-04-21 23:18:31 +04:00
|
|
|
Text mode X11 support: ${textmode_x11_support}
|
1998-02-27 07:54:42 +03:00
|
|
|
Debugger code: ${mem_debug}
|
|
|
|
With subshell support: ${subshell}
|
|
|
|
X11 versions: ${xvers}
|
|
|
|
Internal editor: ${EDIT_msg}
|
2000-08-22 06:17:58 +04:00
|
|
|
Install path: ${prefix}/bin, ${prefix}/lib/mc
|
|
|
|
"
|