diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-24 19:21:22 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-04-24 19:21:22 (GMT) |
commit | 3edcb9032bd065648de42a0256649d8883a4824b (patch) | |
tree | af2bc16d0b8ac1b6d475dca93cf63afc13a3c6b5 /bin | |
parent | 1da400ea6b5ac311bb65f807cc9920a7c1be7718 (diff) | |
download | hdf5-3edcb9032bd065648de42a0256649d8883a4824b.zip hdf5-3edcb9032bd065648de42a0256649d8883a4824b.tar.gz hdf5-3edcb9032bd065648de42a0256649d8883a4824b.tar.bz2 |
[svn-r5246] Purpose:
Bug Fix
Description:
On some platforms, mktemp doesn't work. This would wipe out the
tmpdir variable's value.
Solution:
Reinitialize tmpdir in these cases.
Platforms tested:
HP-UX
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ltmain.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh index 05c61ef..1cb786c 100644 --- a/bin/ltmain.sh +++ b/bin/ltmain.sh @@ -4354,6 +4354,8 @@ relink_command=\"$relink_command\"" tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` if test $? = 0 ; then : else + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" fi if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : |