aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-09-27 21:24:38 +0000
committerMåns Rullgård <mans@mansr.com>2006-09-27 21:24:38 +0000
commitbe0d52ab7875f91d783feba3ea12f338dfd08d45 (patch)
treec32b03704ec3442d1c44cda883a14292816d7f9d
parent5b11e0817185aae44fdeda4c6c0cf030c508a479 (diff)
downloadffmpeg-be0d52ab7875f91d783feba3ea12f338dfd08d45.tar.gz
make sure we can create and execute files in $TMPDIR
Originally committed as revision 6362 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 12fd3c563e..9fa4058844 100755
--- a/configure
+++ b/configure
@@ -1110,6 +1110,19 @@ if test $tune != "generic"; then
esac
fi
+# make sure we can execute files in $TMPDIR
+cat >$TMPE 2>>$logfile <<EOF
+#! /bin/sh
+EOF
+chmod +x $TMPE >>$logfile 2>&1
+if ! $TMPE >>$logfile 2>&1; then
+ cat <<EOF
+Unable to create and execute files in $TMPDIR1. Set the TMPDIR environment
+variable to another directory.
+EOF
+ die "Sanity test failed."
+fi
+
# compiler sanity check
check_exec <<EOF
int main(){