Reported by Simon Josefsson <simon@josefsson.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00029.html>.
* gnulib-tool: Bail out early of the 'join' program is not found.
+2021-05-12 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Fail properly if the 'join' program is not found.
+ Reported by Simon Josefsson <simon@josefsson.org> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00029.html>.
+ * gnulib-tool: Bail out early of the 'join' program is not found.
+
2021-05-09 Bruno Haible <bruno@clisp.org>
{realloc,calloc}-gnu: Fix autoconf macro (regression 2021-04-18).
}
}
+# The 'join' program does not exist on all platforms. Where it exists,
+# we can use it. Where not, bail out.
+if (type join) >/dev/null 2>&1; then
+ :
+else
+ echo "$progname: 'join' program not found. Consider installing GNU coreutils." >&2
+ func_exit 1
+fi
+
# Ensure an 'echo' command that
# 1. does not interpret backslashes and
# 2. does not print an error message "broken pipe" when writing into a pipe