Originally committed as revision 16385 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2008/12/29 21:55:24... | ... |
@@ -1278,20 +1278,15 @@ enabled cross_compile || host_cc_default=$cc |
1278 | 1278 |
set_default host_cc |
1279 | 1279 |
|
1280 | 1280 |
# set temporary file name |
1281 |
-if test ! -z "$TMPDIR" ; then |
|
1282 |
- TMPDIR1="${TMPDIR}" |
|
1283 |
-elif test ! -z "$TEMPDIR" ; then |
|
1284 |
- TMPDIR1="${TEMPDIR}" |
|
1285 |
-else |
|
1286 |
- TMPDIR1="/tmp" |
|
1287 |
-fi |
|
1281 |
+: ${TMPDIR:=$TEMPDIR} |
|
1282 |
+: ${TMPDIR:=/tmp} |
|
1288 | 1283 |
|
1289 |
-TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" |
|
1290 |
-TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" |
|
1291 |
-TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" |
|
1292 |
-TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" |
|
1293 |
-TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" |
|
1294 |
-TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" |
|
1284 |
+TMPC="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" |
|
1285 |
+TMPE="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" |
|
1286 |
+TMPH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" |
|
1287 |
+TMPO="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" |
|
1288 |
+TMPS="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" |
|
1289 |
+TMPSH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" |
|
1295 | 1290 |
|
1296 | 1291 |
check_cflags -std=c99 |
1297 | 1292 |
|
... | ... |
@@ -1690,9 +1685,8 @@ EOF |
1690 | 1690 |
chmod +x $TMPSH >> $logfile 2>&1 |
1691 | 1691 |
if ! $TMPSH >> $logfile 2>&1; then |
1692 | 1692 |
cat <<EOF |
1693 |
-Unable to create and execute files in $TMPDIR1. Set the TMPDIR environment |
|
1694 |
-variable to another directory and make sure that $TMPDIR1 is not mounted |
|
1695 |
-noexec. |
|
1693 |
+Unable to create and execute files in $TMPDIR. Set the TMPDIR environment |
|
1694 |
+variable to another directory and make sure that it is not mounted noexec. |
|
1696 | 1695 |
EOF |
1697 | 1696 |
die "Sanity test failed." |
1698 | 1697 |
fi |