From 90d65cf6f03c4a7d1df9e728cb8e0e7bf3e7b78b Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Wed, 30 Dec 2020 12:19:53 +0000
Subject: [PATCH] (configure.ac) fix deprecated AM_INIT_AUTOMAKE usage
Fix deprecate warning
configure.ac:13: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:13: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
Support of m4_esyscmd_s() since autoconf-2.64 (release 2009-07-26)
Also smarten up PACKAGE defines
# diff -u0N config.h.before config.h.after
-#define PACKAGE_BUGREPORT ""
+#define PACKAGE_BUGREPORT "mc-devel@gnome.org"
-#define PACKAGE_NAME ""
+#define PACKAGE_NAME "GNU Midnight Commander"
-#define PACKAGE_STRING ""
+#define PACKAGE_STRING "GNU Midnight Commander 4.8.25-145-gfa8513be6"
-#define PACKAGE_TARNAME ""
+#define PACKAGE_TARNAME "mc"
-#define PACKAGE_URL ""
+#define PACKAGE_URL "https://midnight-commander.org/"
-#define PACKAGE_VERSION ""
+#define PACKAGE_VERSION "4.8.25-145-gfa8513be6"
(extend version.sh for early use at AC_INIT)
Signed-off-by: Andreas Mohr <and@gmx.li>
---
configure.ac | 6 +++---
doc/INSTALL | 2 +-
maint/utils/version.sh | 1 +
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4f542b567..269c30860 100644
a
|
b
|
dnl |
2 | 2 | dnl Configure.in file for the Midnight Commander |
3 | 3 | dnl |
4 | 4 | |
5 | | AC_PREREQ(2.60) |
6 | | AC_INIT([GNU Midnight Commander], [], [mc-devel@gnome.org]) |
| 5 | +AC_PREREQ(2.64) dnl needed at least for m4_esyscmd_s() |
| 6 | +AC_INIT([GNU Midnight Commander], [m4_esyscmd_s([maint/utils/version.sh .])], [mc-devel@gnome.org], [mc], [https://midnight-commander.org/]) |
7 | 7 | m4_pattern_forbid(MC_) |
8 | 8 | AC_CONFIG_MACRO_DIR([m4]) |
9 | 9 | AC_CONFIG_AUX_DIR(config) |
10 | 10 | AC_CONFIG_SRCDIR(src/main.c) |
11 | 11 | AC_CONFIG_HEADERS(config.h) |
12 | 12 | mc_VERSION |
13 | | AM_INIT_AUTOMAKE(mc, ${VERSION} ) |
| 13 | AM_INIT_AUTOMAKE |
14 | 14 | dnl Enable silent rules by default (if yes) |
15 | 15 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
16 | 16 | |
diff --git a/doc/INSTALL b/doc/INSTALL
index 564862c33..4cc4ea4da 100644
a
|
b
|
Build requirements for GNU Midnight Commander |
12 | 12 | - glibc |
13 | 13 | - gcc |
14 | 14 | - make |
15 | | - autoconf |
| 15 | - autoconf >= 2.64 |
16 | 16 | - automake |
17 | 17 | - libtool |
18 | 18 | - glib2 >= 2.30 |
diff --git a/maint/utils/version.sh b/maint/utils/version.sh
index 64405191f..47107ffda 100755
a
|
b
|
mc_print_version(){ |
42 | 42 | #endif |
43 | 43 | EOF |
44 | 44 | fi |
| 45 | echo "${CURR_MC_VERSION}" |
45 | 46 | exit |
46 | 47 | } |
47 | 48 | |