diff --git a/install b/install
index 31ce3a9023e2463851c966445cb6c91fe544fd35..1ffa3094c291cffe85d6fd64029fe7bad323c70c 100755
--- a/install
+++ b/install
@@ -258,8 +258,10 @@ else
                 echo "Error the installation of Boost failed"
                 exit 1
             fi
-            if [ x"$dgc_compiler" == x"icpc" ]; then
+            if [ x"$CXX" == x"icpc" ]; then
               ./script/install_BOOST.sh $i_dir $ncore intel-linux
+            elif [ x"$CXX" == x"clang++" ]; then
+              ./script/install_BOOST.sh $i_dir $ncore darwin
             else
               ./script/install_BOOST.sh $i_dir $ncore gcc
             fi