`AM_PROG_CC_C_O` is part of `AC_PROG_CC` since Automake 1.14, released in 2013
and we are almost in 2025 by now.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
'-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>
The mc's built-in samba library which is used to access data across
smb links is taken from an old samba version.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
version.sh: move from maint/utils to the root of the source tree
and make it a part of distributable tarball.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Since automake-1.12 (test-driver script) libcheck logfile is written
parallel by automake.
Print test logging to stdout and let write to logfile by automake only.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Bundled libintl did not support linking to internal static
libraries (libmc in our case): directly specified static
libraries are not pulled by libtool and are not usable for
dynamic libraries as PIC-related flags are not passed for
compilation.
This renders bundled libintl library unusable.
The change drops libintl bundling support and always relies
on external libintl (or falls back to disabled NLS).
On a related note gettext-0.20 drops support for bundling
or libintl and this change will ease migration to newer version.
The change is tested on x86_64-gentoo-linux-musl: mc builds
and links all tests successfully. A few tests fail for lack
of NLS support.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* File version.h will be created (or changed) automatically
* Fixed versions for rpm packages - all '-' changed to '.' in RPM_VERSION variable
* when version.h is changed (or deleted) ./configure script will be invoked
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
m4 directory is used by aclocal.
* m4/Makefile.am: New file.
* configure.in: Substitute m4/Makefile.
* autogen.sh: Don't copy any macro files, use m4 directory.
AC_CONFIG_AUX_DIR. Remove some unused or implied macros.
* Makefile.am (EXTRA_DIST): Remove "depcomp" - this workaround
is not needed if AC_CONFIG_AUX_DIR is used.
* vfs/Make-mc.in: Adjust mkinstalldirs location.
* autogen.sh: Create "config" and remove "autom4te.cache".
now done in configure. Move -I.. to the beginning.
* Makefile.am (SUBDIRS): Move intl po to the beginning, since
libintl.a may be required to link mc.
(ACLOCAL_M4_SOURCES): Remove macros/gnome-gettext.m4.
* configure.in: Use AM_GNU_GETTEXT instead of AM_GNOME_GETTEXT.
Move all i18n code to one place. Don't substitute INTLSUB - it's
unused. Substitute INTLDEPS, since AM_GNU_GETTEXT doesn't do it.
Remove SCO-specific i18n hacks. Add -I$(top_srcdir) to CPPFLAGS.
updates it when needed.
* mc.spec.in: Include translations with mc, not gmc. Run
chkconfig --del in %preun, not %postun. --without-debug not
needed. /etc/X11/wmconfig not needed. /etc/pam.d/mcserv shouldn't
be executable. New files in %{prefix}/lib/mc/ - translated hints,
editor files.
to ...
* Makefile.am, doc-gnome/Makefile.am, pc/Makefile.am: ... this
* Make.common.in: support for "distdir" for compatability
with Automake-generated makefiles
* autogen.sh: run automake. Force cache - it is off by default
in autoconf 2.49a, but it's still handy for maintainers
* configure.in: adapted for Automake