summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-05-31 21:15:14 +0000
committerUoti Urpala <uau@mplayer2.org>2011-07-06 09:18:02 +0300
commitb3f911f385378fcaeceb7b4f438363aa9ddde236 (patch)
tree85ea680578bc0bd80df90d529e325ffc7f6baa71 /configure
parentbe4d3d34914720c89c084a0532be178b5e0f12cb (diff)
downloadmpv-b3f911f385378fcaeceb7b4f438363aa9ddde236.tar.bz2
mpv-b3f911f385378fcaeceb7b4f438363aa9ddde236.tar.xz
configure: add an initial check to verify compiler works at all
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33533 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 6d54e95f78..f11d96f41f 100755
--- a/configure
+++ b/configure
@@ -1449,6 +1449,10 @@ else
fi # icc
test "$cc_fail" = yes && die "unsupported compiler version"
+echocheck "working compiler"
+cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ."
+echo "yes"
+
if test -z "$_target" && x86 ; then
cat > $TMPC << EOF
int main(void) {