]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_PROG_MKDIR_P: Fix detection of busybox mkdir.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Dec 2023 13:48:15 +0000 (08:48 -0500)
committerZack Weinberg <zack@owlfolio.org>
Wed, 13 Dec 2023 13:54:58 +0000 (08:54 -0500)
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.

lib/autoconf/programs.m4

index d06d18c4476bf60805bd0310e5ebca45ea59162f..8226a7c786e3a225c2fe36352df5fe23ca99075c 100644 (file)
@@ -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;;