Browse Source

make sure we can create and execute files in $TMPDIR

Originally committed as revision 6362 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 19 years ago
parent
commit
be0d52ab78
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      configure

+ 13
- 0
configure View File

@@ -1110,6 +1110,19 @@ if test $tune != "generic"; then
esac esac
fi 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 # compiler sanity check
check_exec <<EOF check_exec <<EOF
int main(){ int main(){


Loading…
Cancel
Save