Set the location of ccc-analyzer to be the same directory as where scan-build
is located.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49397 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/scan-build b/utils/scan-build
index 29ad085..b4efa7b 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -265,8 +265,6 @@
   print OUT "</table>\n</body></html>\n";  
   close(OUT);
   
-  print "$RealBin\n";
-  
   CopyJS($Dir);
 }
 
@@ -427,8 +425,11 @@
 
 SetHtmlEnv(\@ARGV, $HtmlDir);
 
-my $Cmd = `which ccc-analyzer`;
-$Cmd =~ s/\015?\012//;
+my $Cmd = "$RealBin/ccc-analyzer";
+
+die "$Prog: Executable 'ccc-analyzer' does not exist at '$Cmd'\n"
+  if (! -x $Cmd);
+
 $ENV{'CC'} = $Cmd;
 
 if ($Verbose >= 2) {