Description: [PATCH] build: add support for rust coreutils
Author: Tomas Jelinek <tojeline@redhat.com>
Origin: upstream, https://github.com/ClusterLabs/pcs/commit/c64416f8d0db98fa607d799479c256e85f3cb47f
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2125058
Applied-Upstream: 0.12.2
Last-Update: 2026-03-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

diff --git a/m4/ax_prog_date.m4 b/m4/ax_prog_date.m4
index c85f0f242..31d47b2dc 100644
--- a/m4/ax_prog_date.m4
+++ b/m4/ax_prog_date.m4
@@ -1,3 +1,6 @@
+#
+# Customized version to support uutils from Ubuntu
+#
 # ===========================================================================
 #       https://www.gnu.org/software/autoconf-archive/ax_prog_date.html
 # ===========================================================================
@@ -13,7 +16,7 @@
 #
 #   The type is determined as follow:
 #
-#     * If the version string contains "GNU", then:
+#     * If the version string contains "GNU" or "uutils", then:
 #       - The variable ax_cv_prog_date_gnu is set to "yes".
 #       - The variable ax_cv_prog_date_type is set to "gnu".
 #
@@ -78,7 +81,7 @@
 AC_DEFUN([AX_PROG_DATE], [dnl
   AC_CACHE_CHECK([for GNU date], [ax_cv_prog_date_gnu], [
     ax_cv_prog_date_gnu=no
-    if date --version 2>/dev/null | head -1 | grep -q GNU
+    if date --version 2>/dev/null | head -1 | grep -q "\(GNU\|uutils\)"
     then
       ax_cv_prog_date_gnu=yes
     fi
