Selaa lähdekoodia

Improve logic to guess the toolset name in top-level configure script. Fixes #1087

[SVN r44893]
Douglas Gregor 18 vuotta sitten
vanhempi
sitoutus
b67d2d1a6a
1 muutettua tiedostoa jossa 22 lisäystä ja 1 poistoa
  1. 22 1
      configure

+ 22 - 1
configure

@@ -185,7 +185,28 @@ my_dir="."
 
 # 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

粤ICP备19079148号