bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in m4/mkdirp.m4


From: Peter O'Gorman
Subject: bug in m4/mkdirp.m4
Date: Wed, 27 Jul 2005 23:51:40 +0900
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Hi,
If install-sh loses its execute bit, it is usually okay, install-sh is usually called as "$(SHELL) $(install_sh)" except that mkdir_p is set to "$(install_sh) -d" on some systems. I suggest the attached patch.

Peter
Index: m4/mkdirp.m4
===================================================================
RCS file: /cvs/automake/automake/m4/mkdirp.m4,v
retrieving revision 1.7
diff -u -3 -p -u -r1.7 mkdirp.m4
--- m4/mkdirp.m4        9 Jan 2005 14:46:21 -0000       1.7
+++ m4/mkdirp.m4        27 Jul 2005 14:50:28 -0000
@@ -55,9 +55,9 @@ else
   done
   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
   if test -f "$ac_aux_dir/mkinstalldirs"; then
-    mkdir_p='$(mkinstalldirs)'
+    mkdir_p='$(SHELL) $(mkinstalldirs)'
   else
-    mkdir_p='$(install_sh) -d'
+    mkdir_p='$(SHELL) $(install_sh) -d'
   fi
 fi
 AC_SUBST([mkdir_p])])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]