$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: dgregor_at_[hidden]
Date: 2008-04-29 14:37:26
Author: dgregor
Date: 2008-04-29 14:37:26 EDT (Tue, 29 Apr 2008)
New Revision: 44893
URL: http://svn.boost.org/trac/boost/changeset/44893
Log:
Improve logic to guess the toolset name in top-level configure script. Fixes #1087
Text files modified: 
   trunk/configure |    23 ++++++++++++++++++++++-                 
   1 files changed, 22 insertions(+), 1 deletions(-)
Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	2008-04-29 14:37:26 EDT (Tue, 29 Apr 2008)
@@ -185,7 +185,28 @@
 
 # Determine the toolset, if not already decided
 if test "x$TOOLSET" = x; then
-  TOOLSET=`$my_dir/tools/jam/src/build.sh --guess-toolset`
+  guessed_toolset=`$my_dir/tools/jam/src/build.sh --guess-toolset`
+  case $guessed_toolset in
+    acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp )
+    TOOLSET=$guessed_toolset
+    ;;
+    
+    intel-* )
+    TOOLSET=intel
+    ;;
+    
+    mingw )
+    TOOLSET=gcc
+    ;;
+    
+    sun* )
+    TOOLSET=sun
+    ;;
+    
+    * )
+    # Not supported by Boost.Build
+    ;;
+  esac
 fi
 
 rm -f config.log