1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

compiler sanity check

Originally committed as revision 5551 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2006-06-29 23:47:50 +00:00
parent fac252f95b
commit 1a268accb5

14
configure vendored
View File

@ -1033,6 +1033,20 @@ if test $tune != "generic"; then
esac
fi
# compiler sanity check
check_exec <<EOF
int main(){
return 0;
}
EOF
if test "$?" != 0; then
echo "$cc is unable to create an executable file."
if test -z "$cross_prefix" -a "$cross_compile" = no; then
echo "If $cc is a cross-compiler, use the --cross-compile option."
fi
die "C compiler test failed."
fi
# check for SIMD availability
# AltiVec flags: The FSF version of GCC differs from the Apple version