aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-02-01 20:39:43 +0000
committerK. Richard Pixley <rich@cygnus>1993-02-01 20:39:43 +0000
commit09e0b9929b0e9f64accad765299bcb517a2eacfa (patch)
tree310e4275bfcdccbfe831de4bac424acbc1a0ede8 /configure
parent7cb0f87089e0e3b11014c5eb62a6936db52d4f64 (diff)
downloadgdb-09e0b9929b0e9f64accad765299bcb517a2eacfa.zip
gdb-09e0b9929b0e9f64accad765299bcb517a2eacfa.tar.gz
gdb-09e0b9929b0e9f64accad765299bcb517a2eacfa.tar.bz2
check return code of mkdir, print error message on failure. addresses bug #2079
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 13 insertions, 5 deletions
diff --git a/configure b/configure
index add8d6b..a4d173b 100755
--- a/configure
+++ b/configure
@@ -561,7 +561,12 @@ for subdir in . ${subdirs} ; do
fi
if [ ! -d ${subdir} ] ; then
- mkdir ${subdir}
+ if mkdir ${subdir} ; then
+ true
+ else
+ echo '***' "${progname}: could not make ${PWD=`pwd`}/${subdir}" 1>&2
+ exit 1
+ fi
fi
case "${removing}" in
@@ -815,14 +820,19 @@ done
# If there are subdirectories, then recur.
if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
for configdir in ${configdirs} ; do
- eval echo Configuring ${configdir}... ${redirect}
if [ -d ${srcdir}/${configdir} ] ; then
+ eval echo Configuring ${configdir}... ${redirect}
case "${srcdir}" in
".") ;;
*)
if [ ! -d ./${configdir} ] ; then
- mkdir ./${configdir}
+ if mkdir ./${configdir} ; then
+ true
+ else
+ echo '***' "${progname}: could not make ${PWD=`pwd`}/${configdir}" 1>&2
+ exit 1
+ fi
fi
;;
esac
@@ -863,8 +873,6 @@ if [ -z "${norecursion}" -a -n "${configdirs}" ] ; then
fi
cd ${POPDIR}
- else
- eval echo Warning: source directory \"${srcdir}/${configdir}\" is missing. ${redirect}
fi
done
fi