Ticket #2906: crash on Solaris while trying to copy a file.

Sync with gnulib c25bdbae48977a527dff69150f59fb0746d31b51:
fs usage: check for GNU/Linux statvfs problem dynamically.

* src/filemanager/mountlist.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
Define STAT_STATFS2_BSIZE too, since in this case the code now
checks dynamically whether statvfs is reliable, falling back on
Linux-style statfs otherwise.
(statvfs_works): New function, for dynamically testing statvfs.
(get_fs_usage) [STAT_STATVFS]: Use it.
* src/filemanager/filegui.c (filegui__check_attrs_on_fs): apply the same
statvfs_works function.
* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
statvfs on GNU/Linux hosts, since it's now done dynamically.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:

fs usage: fix block size returned on older Linux 2.6.

* src/filemanager/mountlist.c: Fall back to (struct statfs).f_frsize
which is available since Linux 2.6.
* m4.include/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
when the member is available so it can be used as a fallback.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967

Avoid needless check on GNU/Linux.

* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
on GNU/Linux systems, since it can't possibly work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0

* src/filemanager/mountlist.c [STAT_STATVFS && (__linux__ && (__GLIBC__||__UCLIBC__))]:
Undefine STAT_STATFS2_FRSIZE to exclude code not used in this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.

fsusage: port back to Solaris

* src/filemanager/mountlist.c (get_fs_usage): Fix busted logic causing
compile-time error (fsd not declared) on Solaris 10.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(get_fs_usage): avoid compile warning about mixed declarations and code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2906_copy_crash_on_solaris'

* 2906_copy_crash_on_solaris:
  (get_fs_usage): avoid compile warning about mixed declarations and code.
  Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.
  Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0
  Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967
  Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:
  Ticket #2906: crash on Solaris while trying to copy a file.
src/filemanager/mountlist.c: fix indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2917: Makefile.ams cleanup: remove unused AM_CPPFLAGS.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '2917_cppflags_cleanup'

* 2917_cppflags_cleanup:
  Ticket #2917: Makefile.ams cleanup: remove unused AM_CPPFLAGS.
Ticket #2888: cleanups in master branch.

Check perl, python and ruby programs and substitute them in various files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mc_mkstemps): use g_mkstemp() to generate name of temporary file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix name of LibreOffice executable file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Use AC_MSG_NOTICE to print configure results.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fixed typo in sound file extension: "wvm4a" should be "wv".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mcedit: fix block movement.

steps to reproduce:
1) create text
111111111111111111
222222222222222222
333333333333333333
444444444444444444
555555555555555555

2) select text from line 2 to line 4
3) move cursor to line 3
4) press F6

The block was moved but should't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
(edit_block_move_cmd): minor cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_delete): take gboolean instead of int.

(edit_backspace): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Rename _book_mark to edit_book_mark_t.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(book_mark_clear): return gboolean instead of int.

(book_mark_query_color): likewise.

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