]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_PROG_MKDIR_P: reduce macro output size
authorEric Blake <eblake@redhat.com>
Thu, 9 Apr 2015 14:47:10 +0000 (08:47 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 9 Apr 2015 14:49:09 +0000 (08:49 -0600)
Merging two case globs into one gives slightly smaller files and
less time spent in shell globbing on systems that lack GNU mkdir.

* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Combine two GNU cases.

Signed-off-by: Eric Blake <eblake@redhat.com>
lib/autoconf/programs.m4

index 8ebcf9ebb12d8f61d3c97e65984079a46b619e71..ef35a7915481a7234caaab4637f284497c9b3a75 100644 (file)
@@ -671,9 +671,8 @@ if test -z "$MKDIR_P"; then
         for ac_exec_ext in '' $ac_executable_extensions; do
           AS_EXECUTABLE_P(["$as_dir$ac_prog$ac_exec_ext"]) || continue
           case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
-            'mkdir (GNU coreutils) '* | \
+            'mkdir ('*'coreutils) '* | \
             'BusyBox '* | \
-            'mkdir (coreutils) '* | \
             'mkdir (fileutils) '4.1*)
               ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
               break 3;;