summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-12-13 08:48:15 -0500
committerZack Weinberg <zack@owlfolio.org>2023-12-13 08:54:58 -0500
commitdec7b457b6771588d79190f3f6bd007310fc7fe7 (patch)
tree12d9391efe341b00348c9e1441fa33755ec613cc
parentba719bedba517b501473b3d86af5202f379fced8 (diff)
downloadautoconf-dec7b457b6771588d79190f3f6bd007310fc7fe7.tar.gz
AC_PROG_MKDIR_P: Fix detection of busybox mkdir.
Some versions of BusyBox mkdir respond to ‘mkdir --version’ by printing “mkdir: unrecognized option: --version” to stderr, and then the version message we’re looking for, also to stderr. Adjust the pattern matching in AC_PROG_MKDIR_P to account for this. Problem reported by Valery Ushakov. Resolves <https://savannah.gnu.org/support/?110971>. * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Fix detection of busybox mkdir.
-rw-r--r--lib/autoconf/programs.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4
index d06d18c..8226a7c 100644
--- a/lib/autoconf/programs.m4
+++ b/lib/autoconf/programs.m4
@@ -700,7 +700,7 @@ if test -z "$MKDIR_P"; then
AS_EXECUTABLE_P(["$as_dir$ac_prog$ac_exec_ext"]) || continue
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
'mkdir ('*'coreutils) '* | \
- 'BusyBox '* | \
+ *'BusyBox '* | \
'mkdir (fileutils) '4.1*)
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
break 3;;