From: Henrik Gramner Date: Sun, 24 Apr 2016 11:32:43 +0000 (+0200) Subject: configure: Fix clang detection with versioned binaries X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6267e0ff770545de88dfb5d3f176ea73f453730;p=libx264 configure: Fix clang detection with versioned binaries Correctly detect clang binaries that has the version number appended as a suffix to the file name, e.g. `clang38`. --- diff --git a/configure b/configure index 7c01ebcb..dcf77658 100755 --- a/configure +++ b/configure @@ -558,7 +558,7 @@ else fi fi -if [[ "$cc_base" = clang || "$cc_base" = clang[\ .]* ]]; then +if [[ "$cc_base" = clang* ]]; then if cc_check '' -Werror=unknown-warning-option ; then CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option" fi