Skip to contentSkip to conversation

xfsprogs: more autoconf modernisation

PATCH In review Darrick J. Wong 2 participants 2 messages Jun 1, 2022 – Jun 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsprogs: more autoconf modernisation

From: Darrick J. Wong <[email protected]>

Fix a few autoconf things that were added after the submission of the autoconf modernization patch. This was performed by running:

$ autoupdate configure.ac m4/*.m4

And manually putting the version back to 2.69.

---
 configure.ac          |    2 +-
 m4/package_libcdev.m4 |   12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)
configure.ac +1 -1
index a4e14e17..02afd805 100644
@@ -1,5 +1,5 @@
 AC_INIT([xfsprogs],[5.18.0-rc1],[[email protected]])
-AC_PREREQ(2.69)
+AC_PREREQ([2.69])
 AC_CONFIG_AUX_DIR([.])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR([include/libxfs.h])
m4/package_libcdev.m4 +7 -5
index 4dff8792..70badac3 100644
@@ -404,13 +404,15 @@ test = mallinfo();
 #
 AC_DEFUN([AC_HAVE_MALLINFO2],
   [ AC_MSG_CHECKING([for mallinfo2 ])
-    AC_TRY_COMPILE([
+    AC_COMPILE_IFELSE(
+    [	AC_LANG_PROGRAM([[
 #include <malloc.h>
-    ], [
-         struct mallinfo2 test;
+        ]], [[
+struct mallinfo2 test;
 
-         test.arena = 0; test.hblkhd = 0; test.uordblks = 0; test.fordblks = 0;
-         test = mallinfo2();
+test.arena = 0; test.hblkhd = 0; test.uordblks = 0; test.fordblks = 0;
+test = mallinfo2();
+        ]])
     ], have_mallinfo2=yes
        AC_MSG_RESULT(yes),
        AC_MSG_RESULT(no))
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fix a few autoconf things that were added after the submission of the autoconf modernization patch. This was performed by running:

$ autoupdate configure.ac m4/*.m4

And manually putting the version back to 2.69.

Looks good.

Signature · 2 lines
Dave Chinner
[email protected]