[sr #110971] busybox mkdir is misdetected

Zack Weinberg <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #2, sr #110971 (project autoconf):

Could you please test this patch (apply to autoconf git trunk)?

diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4
index d06d18c4..9ab71c38 100644
--- a/lib/autoconf/programs.m4
+++ b/lib/autoconf/programs.m4
@@ -698,7 +698,8 @@ if test -z "$MKDIR_P"; then
       [for ac_prog in mkdir gmkdir; do
 	 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 #(
+	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1 |
+	         grep -v "unrecognized option"` in #(
 	     'mkdir ('*'coreutils) '* | \
 	     'BusyBox '* | \
 	     'mkdir (fileutils) '4.1*)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110971>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.