aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-10-22 21:19:13 +0000
committerDavid Conrad <lessen42@gmail.com>2009-10-22 21:19:13 +0000
commit06da6943724bf7df520f4ef08465350af2b4bc59 (patch)
tree0ecab2f6fff6022e731a9a6a97342a8491b8e65b /configure
parentb74d42ee330212dbfec8024e9490a5a7372497cc (diff)
downloadffmpeg-06da6943724bf7df520f4ef08465350af2b4bc59.tar.gz
Add clang to detected compilers
Originally committed as revision 20350 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 1e416c4c1a..1139ea6485 100755
--- a/configure
+++ b/configure
@@ -1590,6 +1590,11 @@ elif $cc -version 2>/dev/null | grep -q TMS470; then
esac
done
}
+elif $cc -v 2>&1 | grep -q clang; then
+ cc_type=clang
+ cc_version=__VERSION__
+ CC_DEPFLAGS='-MMD'
+ AS_DEPFLAGS='-MMD'
fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
@@ -1615,6 +1620,10 @@ if test -n "$sysroot"; then
add_cppflags -I"$sysinclude"
add_ldflags --sysroot="$sysroot"
;;
+ clang)
+ add_cppflags -isysroot="$sysroot"
+ add_ldflags -isysroot="$sysroot"
+ ;;
esac
fi
@@ -2464,6 +2473,8 @@ elif enabled ccc; then
add_cflags -msg_disable unreachcode
elif enabled gcc; then
check_cflags -fno-tree-vectorize
+elif enabled clang; then
+ check_cflags -Qunused-arguments
fi
if enabled gprof; then