Use mktemp to generate temp files.

Fix the $RANDOM bashism properly by using mktemp.
mktemp is part of MSYS so this should work on UNIXes and Windows
This commit is contained in:
Thomas Preud'homme 2010-06-22 18:40:35 +02:00
parent 9775aea1ab
commit 27988c5e66

3
configure vendored
View File

@ -11,8 +11,7 @@ else
TMPDIR1="/tmp"
fi
# bashism: TMPN="${TMPDIR1}/tcc-conf-${RANDOM}-$$-${RANDOM}.c"
TMPN="./conftest-$$"
TMPN="$(mktemp --tmpdir=${TMPDIR1} tcc-conf-XXXXXXXXXX-$$-XXXXXXXXXX)"
TMPC=$TMPN.c
TMPH=$TMPN.h