Commit 1a268acc authored by Måns Rullgård's avatar Måns Rullgård

compiler sanity check

Originally committed as revision 5551 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fac252f9
...@@ -1033,6 +1033,20 @@ if test $tune != "generic"; then ...@@ -1033,6 +1033,20 @@ if test $tune != "generic"; then
esac esac
fi 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 # check for SIMD availability
# AltiVec flags: The FSF version of GCC differs from the Apple version # AltiVec flags: The FSF version of GCC differs from the Apple version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment