From c50f5b336ceaf6d6d0c550197bb8c4513163d1b8 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 5 Jul 2000 16:01:57 +0000 Subject: [PATCH] * acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure that the directory was created: under Ultrix 4.3 it just returns a name, but does not create the directory. Reported by Christian Krackowizer. --- ChangeLog | 7 +++++++ THANKS | 1 + acgeneral.m4 | 2 +- lib/autoconf/general.m4 | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbb43a0c..dc6e5268 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-07-05 Akim Demaille + + * acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure + that the directory was created: under Ultrix 4.3 it just returns + a name, but does not create the directory. + Reported by Christian Krackowizer. + 2000-07-03 Lars J. Aas * acgeneral.m4 (AC_SHELL_MKDIR_P): New macro. diff --git a/THANKS b/THANKS index f3d34828..95bc343d 100644 --- a/THANKS +++ b/THANKS @@ -20,6 +20,7 @@ Carl Edman cedman@princeton.edu Chad R. Larson chad@anasazi.com Chris P. Ross cross@uu.net Chris Provenzano proven@cygnus.com +Christian Krackowizer ckrackowiz@std.schuler-ag.com Christian Krone krischan@sql.de Chris Torek torek@bsdi.com Cort Dougan cort@cs.nmt.edu diff --git a/acgeneral.m4 b/acgeneral.m4 index 7b02697a..956a998d 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -736,7 +736,7 @@ $debug || : ${TMPDIR=/tmp} { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/$1XXXXXX") 2>/dev/null` && - test -n "$tmp" + test -n "$tmp" && tmp -d "$tmp" } || { tmp=$TMPDIR/$1$$-$RANDOM && (umask 077 && mkdir $tmp) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 7b02697a..956a998d 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -736,7 +736,7 @@ $debug || : ${TMPDIR=/tmp} { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/$1XXXXXX") 2>/dev/null` && - test -n "$tmp" + test -n "$tmp" && tmp -d "$tmp" } || { tmp=$TMPDIR/$1$$-$RANDOM && (umask 077 && mkdir $tmp)