Commit Graph

139 Commits

Author SHA1 Message Date
Slava Zanko bbf1f4e857 Moved filemanager-related stuff to src/filemanager directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:32 +03:00
Slava Zanko 5171b0294e Removed file contrib/dist/mc.qpg.in
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko 8b018db98f Some WIDGET-related stuff moved to lib/widget directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:30 +03:00
Yury V. Zaytsev f32184fd25 Ticket #2237: Automatic date and version substitution for man pages
Currently the date and the version of Midnight Commander in the man
pages has to be changed manually every release. This is being done
sporadically and as the result, the man pages shipped for e.g. 4.7.2
release contain the 4.7.0-pre1 signature, which is quite confusing.

With this patch, the version is substituted with @DISTR_VERSION@ for all
the man pages  and the date is automatically updated to the English man
pages. Other man pages still have the manually updated date of the last
translation.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2010-09-06 17:37:27 +03:00
Andrew Borodin 11c00959f3 Fixup of conditions for networking VFS.
Clean up of code duplicate in configure.ac.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-21 16:43:50 +04:00
Enrico Weigelt, metux IT service 9b89d60522 VFS: cleaned up smbfs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-21 16:43:50 +04:00
Slava Zanko 3ef8854036 Bug: if VFS is disabled, perl is not checked and man2hlp doesn't work.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-21 16:43:49 +04:00
Andrew Borodin 6a55c9320e Ticket #2279: mcserver is deprecated.
Removed mcserver and mcfs support.

Reasons:
(1) no longer builds
(2) no one is willing to support it
(3) possibly contains unfixed security holes
(4) makes no sense in view of the availability of FISH

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-17 18:36:54 +04:00
Ilia Maslakov 36d59acf97 Ticket #2242 (improved FISH)
fixed configure.ac
    added lib/vfs/mc-vfs/fish/Makefile.am lib/vfs/mc-vfs/fishdef.h
    moved lib/vfs/mc-vfs/fish/README.fish
    fixed lib/vfs/mc-vfs/Makefile.am
    added external scripts in lib/vfs/mc-vfs/fish/
        * ls - get gile list
        * mkdir - make directory
        * rmdir - remove directory
        * unlink - delete file
        * chown - change owner/group of file
        * chmod - change mode of file
        * mv - move file
        * ln - make symlink
        * hardlink - make hardlink
        * send - copy file to target host
        * append - append file to target host (if exists)
        * get - copy file from target host
        * info - return resalts of scan remote host (have: perl, sed, awk, etc)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

fish.c: optimization and code cleanup
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

optimization of FISH environment variables.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 15:35:42 +00:00
Slava Zanko 863291ddcd Ticket #1959: Broken master branch after 'AC_TRY_RUN crosscompile break' patch
* split m4.include/mc-with-screen.m4 file in two files: mc-with-screen-slang.m4 and mc-with-screen.m4

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-06-16 10:42:45 +03:00
Slava Zanko da583e5739 Ticket #1959: AC_TRY_RUN crosscompile break
We have several AC_TRY_RUN's in the configure/m4 stuff,
which obviously breaks crosscompiling.

This changeset contain fixies for S-Lang library. First try to search
library via 'pkg-config slang' and then try to go in old search way.
Macro AC_TRY_RUN() now replaced by AC_RUN_IFELSE()

Also, next changes was made:
 * Removed AC_TRY_RUN() from gmodule checking code.
 * More accuracy in grepping of SLANG_VERSION defined constant
 * avoid autoconf error 'suspicious presence of an AC_DEFINE in the second argument, where no actions should be taken'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-06-14 12:44:29 +03:00
Andrew Borodin 0cb04aec3b g_strncasecmp() function is deprecated.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Slava Zanko d523d6e531 Replace man2hlp (from C to perl)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-24 14:41:55 +03:00
Slava Zanko 649487fac1 Ticket #45: Build system does not allow cross compiling
The man2hlp program is build using the target compiler. The
resulting executable therefore does not work on the build host.
Since the man2hlp program is needed during compile time, the build
will fail.

Moved man2hlp into separate subdir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-24 10:06:56 +03:00
Andrew Borodin d51b794901 Don't check memset and memcpy functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-14 12:10:15 +04:00
Andrew Borodin d2b23924dd Ticket #1911: use system realapth(3) function if available.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-14 12:08:43 +04:00
Andrew Borodin f0f1a7c7ff Removed unused src/ecs* files and related stuff.
As a consequence, --enable-extcharset option of configure was removed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 16:24:14 +04:00
Ilia Maslakov 329ef3846a Ticket #120 (View diff files)
added src/diffviewer/ydiff.[ch] into project tree
    added entry 'View diff files' into 'Command' menu
    added 'diffviewer' color pairs
    fixed Makefile and configure.am
    added new binding CmdDiffView into '[main]' section
    Big thanx to 'Daniel Borca <dborca@yahoo.com>' for ydiff

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    Added diffviewer own library

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

    Fixed CFLAGS for diffviewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

    changed skins, added section
        [diffviewer]
            added=
            changedline=
            changednew=
            changed=
            removed=
            folder=
            error=

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

Reimplementation of hardcoded shortcuts to keybindings.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-26 11:44:15 +04:00
Yury V. Zaytsev 5ed43370a7 Minor grammar/spelling issues. 2010-04-10 12:53:55 +03:00
Sergei Trofimovich 690950e1b8 Ticket #2134: configure.ac: add support for AM_SILENT_RULES
Inspired by http://www.flameeyes.eu/autotools-mythbuster/automake/silent.html
Conditionally enabling AM_SILENT_RULES if supported

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2010-04-10 12:53:55 +03:00
Slava Zanko 47cdfd6baf Use system function strverscmp() if exists.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
Andrew Borodin ba1d909a7a extfs.ini file is replaced to extfs.d directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Enrico Weigelt, metux IT service d26be9da5f Ticket #262: remove obsolete own putenv() implementation.
Removed obsolete own putenv() implementation

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-30 18:31:24 +03:00
Sergei Trofimovich 81b644df8a Ticket #1981: configure.ac: add AM_PROG_CC_C_O as we use compiler, that accepts '-c' and '-o' options
src/consaver/Makefile.am:5: compiling `cons.saver.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-28 14:47:45 +02:00
Andrew Borodin 5a92bf096a Ticket #1980: increased minimal required version of GLib up to 2.8.
g_try_new, g_try_new0 and g_try_malloc0 macros
are available in Glib >= 2.8.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-28 15:10:00 +00:00
Slava Zanko 8211adc425 Added check for empty value of 'enable_mcserver' variable for more proper summary output.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-27 21:56:46 +01:00
Slava Zanko 862652bd1b Move src/cons.saver into src/consaver/* subdir
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko cd4dbf3a09 Changes for build after moving strutil into lib
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko 39d5b94cac Reorganized pathes to files in '#include' directives 2010-01-26 10:30:22 +02:00
Slava Zanko 4f11e4b665 Massive moved some dirs from $(srcdir)/src into $(srcdir)/lib
Moved subdirs:
 * filehighlight
 * mcconfig
 * search
 * skin
 * tty

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00
Slava Zanko 630efbd59a Moved dir $(srcdir)/syntax into $(srcdir)/misc/syntax
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko 52f6bed7d0 Moved dir $(srcdir)/vfs into $(srcdir)/lib/vfs/mc-vfs
Also, initial support of library directory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko 871991dda0 Ticket #1866: Move edit/ and vfs/ directories into src/
Moved dir $(srcdir)/edit into $(srcdir)/src/editor

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:19 +02:00
Enrico Weigelt, metux IT service 4a4fc37f53 Ticket #1932: Removed obsolete checks for standard header termios.h 2010-01-15 00:58:50 +01:00
Enrico Weigelt, metux IT service f6637e4871 Ticket #1780: removing own declaration of errno and strerror() 2010-01-02 07:11:01 +01:00
Slava Zanko 7f4f0cb660 Ticket #1905: Rework the versioning scheme.
We have a problem with the current mc-x.y.z-preW versioning scheme for
both Redhat and Debian. The problem is that

(1) mc-1:4.7.0-1.fc12.x86_64
(2) mc-1:4.7.0.pre4.231.g8cfffc5-1.fc12.x86_64

(1) is considered to be older than (2)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-30 22:22:53 +02:00
Enrico Weigelt, metux IT service ec1a52fb0a VFS: renamed USE_VFS to ENABLE_VFS 2009-12-30 11:06:11 +02:00
Jakob Kemi 6908e6fc48 Ticket #272: Extfs: added S3 backend by Jakob Kemi 2009-12-24 22:26:14 +01:00
Sergei Trofimovich 7fcef13e61 configure.ac: guard $CFLAGS with "" in tests
Fixes ./configure error:
../mc/configure: line 42709: test: too many arguments

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-12-16 11:10:41 +02:00
Slava Zanko 771a2958ad configure.ac: Optimization of building 'CFLAGS' variable.
Now user-defined CFLAG (from envirovement) have higest priority before
internal definitions.

Also, patch have change for respect code optimization options from user.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-16 11:10:40 +02:00
Enrico Weigelt, metux IT service d579bb7877 Ticket #1789: Removed obsolete checks for setuid(), getuid(), etc
Removed obsolete checks for setuid(), getuid(), etc

Signed-off-by: Enrico Weigelt <weigelt@metux.de>
2009-12-15 18:13:40 +03:00
Enrico Weigelt, metux IT service 551ac003a4 Ticket #1788: remove obsolete checks for <pwd.h> and <grp.h>
remove obsolete checks for <pwd.h> and <grp.h>

Signed-off-by: Enrico Weigelt, metux IT service <weigelt@metux.de>
2009-12-15 18:00:02 +03:00
Enrico Weigelt, metux IT service 2b4f8103ce Ticket #1786: remove obsolete check for <sys/wait.h>
remove obsolete check for <sys/wait.h>
    This file is C standard, so no explicit check necessary.

Signed-off-by: Enrico Weigelt <weigelt@metux.de>
2009-12-15 17:20:36 +03:00
Enrico Weigelt, metux IT service e9b01c6400 Ticket #1787: remove obsolete checks for <stdlib.h> 2009-12-13 05:29:35 +01:00
Enrico Weigelt, metux IT service 91a5df442f Dropping non-strftime() support and fixing -Werror problem
Problem:

a) when running ./configure, strftime() and other functions cannot be
   properly detected, since autoconf generates crappy test code, which
   at least fails when warnings are treated as errors (gcc: -Werror).

b) strtime() is standard since C89, so we can simply expect it to exists
   (if there's *really* some acient box out there breaking mc build,
   it's libc/toolchain should be fixed ;-p)

Solution:

Remove the checks for strftime() and all workarounds
2009-11-09 13:49:56 +01:00
Slava Zanko 2a4075d246 Now possible to compile mc in different cases: as mc maintainer or as end-user.
Some debug-related code will compile just in mainteiner mode.
Also, added new parameter for configure script: --enable-werror

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:15 +02:00
Slava Zanko 2ffb7c6719 Added checks for compiler options.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 14:41:03 +02:00
Slava Zanko 3518f7c585 Added debug options for --enable-maintainer mode
Also, added extra warnings and now all warnongs threaded as errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko 3b05057818 Ticket #1607: undelfs check broken in configure.ac
Fix running onfigure with '--disable-vfs-undelfs' option.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-15 09:34:29 +03:00
Stan. S. Krupoderov 8cbc12fbb9 Ticket #1419: ./configure issue: GPM-related
configure.ac: terminate with error if gpm not found and
    --with-gpm-mouse option used

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-26 17:21:18 +04:00