mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
de093c2913
`clang++ -dumpversion` always outputs 4.2.1 as it was designed to be compatible with `g++` in that version. So parse `clang++ --version` for `clang++` instead.
11 lines
291 B
Plaintext
11 lines
291 B
Plaintext
AC_CACHE_CHECK(
|
|
[compiler version],
|
|
[ac_cv_compiler_version],
|
|
[
|
|
if test x"$ac_cv_compiler_is_clang" = xyes; then
|
|
ac_cv_compiler_version=`LC_ALL=C $CXX --version | sed -e 's/^[[^0-9]]*//' -e 's/[[^0-9.]].*//' -e '1q'`
|
|
else
|
|
ac_cv_compiler_version=`$CXX -dumpversion`
|
|
fi
|
|
])
|