Back to the Main Page.

ac_as_mkdir_p

Download the M4 Source.

Synopsis

Version

1.2 (2003/02/02)     0.5.65   :   guidod

Author

complain to <guidod@gmx.de>

Description
AC_AS_MKDIR_P(PATH)

obsoleted - autoconf 2.5x should be the minimum being in use.

this is the macro AS_MKDIR_P from autoconf 2.4x defined here for use in autoconf 2.1x, remove the AC_ when you use 2.4x

M4 Source Code

AC_DEFUN([AC_AS_MKDIR_P],[dnl
case $1 in
  \\*)   ac_incr_dir=\\;;
  ?:\\*) ac_incr_dir=\\;; # ouch
  /*)    ac_incr_dir=/;;
  ?:/*)  ac_incr_dir=/;; # ouch
  *)     ac_incr_dir=.;;
esac
as_dummy=$1
for as_mkdir_dir in `echo $ac_dummy | sed -e 'y:\\/:  :'`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done
])