Blame SOURCES/0002-configure-update-some-macros-for-autoconf-2.71.patch

bc0354
From cff19e9044e3f389a14fbc5e98366a31107d4a02 Mon Sep 17 00:00:00 2001
bc0354
From: Sumit Bose <sbose@redhat.com>
bc0354
Date: Tue, 6 Apr 2021 15:23:54 +0200
bc0354
Subject: [PATCH 2/2] configure: update some macros for autoconf-2.71
bc0354
bc0354
---
bc0354
 configure.ac | 15 +++++++--------
bc0354
 1 file changed, 7 insertions(+), 8 deletions(-)
bc0354
bc0354
diff --git a/configure.ac b/configure.ac
bc0354
index 05ec1bf..4dac5a9 100644
bc0354
--- a/configure.ac
bc0354
+++ b/configure.ac
bc0354
@@ -1,4 +1,4 @@
bc0354
-AC_PREREQ(2.63)
bc0354
+AC_PREREQ([2.63])
bc0354
 
bc0354
 AC_INIT([realmd], [0.17.0],
bc0354
         [https://gitlab.freedesktop.org/realmd/realmd/-/issues],
bc0354
@@ -69,8 +69,7 @@ AC_ARG_WITH([vendor-error-message],
bc0354
 # -----------------------------------------------------------------------------
bc0354
 # Basic tools
bc0354
 
bc0354
-AC_GNU_SOURCE
bc0354
-AC_ISC_POSIX
bc0354
+AC_USE_SYSTEM_EXTENSIONS
bc0354
 AC_PROG_CC
bc0354
 AC_PROG_CPP
bc0354
 AM_PROG_CC_C_O
bc0354
@@ -109,7 +108,7 @@ AC_SUBST(POLKIT_LIBS)
bc0354
 
bc0354
 AC_MSG_CHECKING([systemd unit directory])
bc0354
 AC_ARG_WITH(systemd-unit-dir,
bc0354
-            AC_HELP_STRING([--with-systemd-unit-dir],
bc0354
+            AS_HELP_STRING([--with-systemd-unit-dir],
bc0354
                            [Directory to install systemd service file]))
bc0354
 
bc0354
 if test "$with_systemd_unit_dir" = "" -o "$with_systemd_unit_dir" = "yes"; then
bc0354
@@ -136,7 +135,7 @@ AC_SUBST(dbus_systemd_service)
bc0354
 AC_MSG_RESULT($with_systemd_unit_dir)
bc0354
 
bc0354
 AC_ARG_WITH(systemd-journal,
bc0354
-            AC_HELP_STRING([--with-systemd-journal],
bc0354
+            AS_HELP_STRING([--with-systemd-journal],
bc0354
                            [Use systemd's journal for logging]))
bc0354
 
bc0354
 if test "$with_systemd_journal" != "no"; then
bc0354
@@ -245,7 +244,7 @@ AC_SUBST(POLKIT_ACTION_DIR)
bc0354
 
bc0354
 AC_MSG_CHECKING([whether to build documentation])
bc0354
 AC_ARG_ENABLE(doc,
bc0354
-              AC_HELP_STRING([--enable-doc],
bc0354
+              AS_HELP_STRING([--enable-doc],
bc0354
                              [Disable building documentation])
bc0354
              )
bc0354
 
bc0354
@@ -314,7 +313,7 @@ AC_SUBST(GENHTML)
bc0354
 
bc0354
 AC_MSG_CHECKING([for debug mode])
bc0354
 AC_ARG_ENABLE(debug,
bc0354
-              AC_HELP_STRING([--enable-debug=no/default/yes],
bc0354
+              AS_HELP_STRING([--enable-debug=no/default/yes],
bc0354
                              [Turn on or off debugging])
bc0354
              )
bc0354
 
bc0354
@@ -397,7 +396,7 @@ AC_SUBST(TEST_MODE)
bc0354
 privatedir='${prefix}/lib/realmd'
bc0354
 AC_MSG_CHECKING([private directory])
bc0354
 AC_ARG_WITH(private-dir,
bc0354
-            AC_HELP_STRING([--with-private-dir=DIR],
bc0354
+            AS_HELP_STRING([--with-private-dir=DIR],
bc0354
                            [Directory to install realmd system defaults (default: ${prefix}/lib/realmd)]))
bc0354
 
bc0354
 if test -n "$with_private_dir"; then
bc0354
-- 
bc0354
2.30.2
bc0354