apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/build apr_common.m4
Date Tue, 14 May 2002 07:35:58 GMT
jerenkrantz    02/05/14 00:35:58

  Modified:    build    apr_common.m4
  Log:
  Add APR_MKDIR_P_CHECK macro based on httpd-2.0's APACHE_MKDIR_P_CHECK.
  
  Revision  Changes    Path
  1.32      +20 -0     apr/build/apr_common.m4
  
  Index: apr_common.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_common.m4,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- apr_common.m4	10 May 2002 19:10:58 -0000	1.31
  +++ apr_common.m4	14 May 2002 07:35:58 -0000	1.32
  @@ -49,6 +49,26 @@
     chmod +x $1
   ])dnl
   
  +dnl APR_MKDIR_P_CHECK(fallback-mkdir-p)
  +dnl checks whether mkdir -p works
  +AC_DEFUN(APR_MKDIR_P_CHECK,[
  +  AC_CACHE_CHECK(for working mkdir -p, ac_cv_mkdir_p,[
  +    test -d conftestdir && rm -rf conftestdir
  +    mkdir -p conftestdir/somedir >/dev/null 2>&1
  +    if test -d conftestdir/somedir; then
  +      ac_cv_mkdir_p=yes
  +    else
  +      ac_cv_mkdir_p=no
  +    fi
  +    rm -rf conftestdir
  +  ])
  +  if test "$ac_cv_mkdir_p" = "yes"; then
  +      mkdir_p="mkdir -p"
  +  else
  +      mkdir_p="$1"
  +  fi
  +])
  +
   dnl
   dnl APR_SUBDIR_CONFIG(dir [, sub-package-cmdline-args])
   dnl
  
  
  

Mime
View raw message