[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41-as-mkdir-p-fails.patch
From: |
Akim Demaille |
Subject: |
41-as-mkdir-p-fails.patch |
Date: |
Wed, 22 Aug 2001 08:28:03 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
* lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
(AC_SITE_LOAD): Better logging of config.site.
Index: lib/autoconf/general.m4
--- lib/autoconf/general.m4 Tue, 21 Aug 2001 07:55:37 +0200 akim
+++ lib/autoconf/general.m4 Tue, 21 Aug 2001 09:54:31 +0200 akim
@@ -1824,7 +1824,7 @@ m4_define([AC_SITE_LOAD],
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
AC_MSG_NOTICE([loading site script $ac_site_file])
- cat "$ac_site_file" >&AS_MESSAGE_LOG_FD
+ sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD
. "$ac_site_file"
fi
done
@@ -4405,15 +4405,7 @@ m4_define([_AC_OUTPUT_SUBDIRS],
test -d $srcdir/$ac_subdir || continue
AC_MSG_NOTICE([configuring in $ac_subdir])
- case $srcdir in
- .) ;;
- *) AS_MKDIR_P(["./$ac_subdir"])
- if test -d ./$ac_subdir; then :;
- else
- AC_MSG_ERROR([cannot create `pwd`/$ac_subdir])
- fi
- ;;
- esac
+ AS_MKDIR_P(["./$ac_subdir"])
ac_popdir=`pwd`
cd $ac_subdir
Index: lib/m4sugar/m4sh.m4
--- lib/m4sugar/m4sh.m4 Sun, 19 Aug 2001 11:28:12 +0200 akim
+++ lib/m4sugar/m4sh.m4 Tue, 21 Aug 2001 09:54:36 +0200 akim
@@ -427,7 +427,9 @@ m4_define([AS_MKDIR_P],
?:) as_incr_dir=$as_mkdir_dir ;;
*)
as_incr_dir=$as_incr_dir/$as_mkdir_dir
- test -d "$as_incr_dir" || mkdir "$as_incr_dir"
+ test -d "$as_incr_dir" ||
+ mkdir "$as_incr_dir" ||
+ AS_ERROR([cannot create $1])
;;
esac
done; }
- 41-as-mkdir-p-fails.patch,
Akim Demaille <=