'po' directory does not use automake assignment.
This is a correction for f45d02ba2a.
ClosesMidnightCommander/mc#191.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
AC_SEARCH_LIBS macro adds required library to 'LIBS' variable.
Currently 'LIBS' could be appended to 'MCLIBS' several times leading to
duplication of found values.
Also fixed duplication for 'stdscr' function detection.
Additionally fixed potential problematic situation when 'addwstr' or
'has_colors' detected in one ncurses library (for example 'ncurses'),
while 'stdscr' detected in other ncurses library (for example 'curses').
Such combination leads to problems.
ClosesMidnightCommander/mc#187.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
If ncurses location is not specified by configure parameters like
'--with-ncurses-includes=/some/dir' then automatic detection at compiler
default location is used. With automatic detection the header
'ncurses/term.h' is not checked therefore macro HAVE_NCURSES_TERM_H is
not defined.
ClosesMidnightCommander/mc#186.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
POSIX specifis '$<' only for "inference" rules (i.e. general rule
like '.c.o:'), while for "target" is undefined.
It is supported as extension for targets by some "make" implementations,
but not all.
The workarounds could be easily used.
ClosesMidnightCommander/mc#185.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4459_sed:
Replaced unportable 'inplace' sed command
Use configure detected or user specified sed in build system
Ticket #4459: usage of 'sed' in build system/makefiles is not portable.
'-i' sed option is not portable, not specified by POSIX and does not
work on same platforms.
Replaced with simple and obvious workarounds.
ClosesMidnightCommander/mc#184.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sometimes system default sed is not the best option.
With this modification user may easily override sed used by build system
without editing any file.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
configure: add explicit sed detection
Actually SED variable is set automatically by LT_INIT currently.
Having explicit check should help avoiding problems if/when LT_INIT
changed.
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 1952_tar:
tar: add support of extended headers.
struct vfs_s_inode: add the 'user_data' member.
tar: prepare to support the POSIX extended headers.
tar: refactoring of archive reading.
(tar_read_header): move entry/inode creation to new function tar_insert_entry().
tar: use separate structure to store various file info.
(tar_read_header): minor optimization.
(tar_read_header): rename variable.
(tar_find_next_block): rename from tar_get_next_block.
src/vfs/tar/tar.c: remove period from error messages.
(tar_read_header): rename variables.
(tar_get_next_block): use file descriptor from archive descriptor.
(tar_open_archive_int): return status of tar archive open
src/vfs/tar/tar.c: clarify support of OLDGNU format.
(tar_decode_header): do not decode size here.
Ticket #1952: tar: support long file names in archive.
* m4.include/ax_path_lib_pcre.m4: replace by recent version from GNU
Autoconf Archive.
* m4.include/ax_check_pcre2.m4: get grom GNU Autoconf Archive.
* m4.include/mc-check-search-type.m4: support both PCRE versions.
* */*/Makefile.am: remove @CHECK_CFLAGS@ and @PCRE_LIBS@ ads they are
added via AX_PATH_LIB_PCRE and AX_CHECK_PCRE2.
* lib/search.h, lib/search/: add support of PCRE2. Thanks broly <gagan@hotmail.com>
for the initial patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 4426_cleanup: (38 commits)
Update po/*.po files.
(edit_find_editor): rename from find_editor.
Listbox window: rename functions.
(buttonbar_find): rename from find_buttonbar.
Menu: rename functions.
(advanced_chown_cmd): use intermediate variables to make text more readable.
Use mc_fgetflags() and mc_fsetflags() where needed.
VFS: mc_fgetflags, mc_fsetflags: new APIs.
Minor optimization of chown/chmod/chattr operations.
(operate_single_file): clarify creation of file operation UI.
(dlg_default_destroy): send MSG_DESTROY to the dialog itself
Collect all editor options to structure.
Add EDIT and CONST_EDIT macros.
usermenu: clarify compilation w/o internal editor.
src/editor/spell.c: add missed #include.
Update template for .c files.
(do_search): remove intermediate variable.
(do_search): get rid of string duplication.
Change WDialog::data from void* to union{void*, int}
Don't create an empty string in WLabel objects.
...
Create UI to show confirmation dialog in case of foreground operation
regardless of ENABLE_BACKGROUND.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>