]> granicus.if.org Git - libx264/commitdiff
configure: Fix clang detection with versioned binaries
authorHenrik Gramner <henrik@gramner.com>
Sun, 24 Apr 2016 11:32:43 +0000 (13:32 +0200)
committerHenrik Gramner <henrik@gramner.com>
Mon, 13 Jun 2016 20:07:00 +0000 (22:07 +0200)
Correctly detect clang binaries that has the version number appended
as a suffix to the file name, e.g. `clang38`.

configure

index 7c01ebcba157c05aa1c0b05347bb9cd85001d4da..dcf77658514a1ac88abd596915ca5986e615b508 100755 (executable)
--- 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