diff --git a/autoconf/mkinstalldirs b/autoconf/mkinstalldirs
index 8f36a72..cb10ce3 100755
--- a/autoconf/mkinstalldirs
+++ b/autoconf/mkinstalldirs
@@ -20,7 +20,7 @@ for file in ${1+"$@"} ; do
 
      if test ! -d "$pathcomp"; then
 #       echo "mkdir $pathcomp" 1>&2
-        mkdir "$pathcomp" || errstatus=$?
+        mkdir -p "$pathcomp" || errstatus=$?
      fi
 
      pathcomp="$pathcomp/"
-- 
2.1.4
