summaryrefslogtreecommitdiff
blob: 19a1341209d4658a8c63032bb0524e0dc68e2a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/configure
+++ b/configure
@@ -38,8 +38,8 @@
   return 0;
 }
 EOF
-CXX=unknown;
-for i in "CC" "g++" "cc" "$CC"; do
+CXX=${CXX-unknown}
+for i in "$CXX" "CC" "g++" "cc"; do
   if $i -c $tmp_file.C 2>/dev/null; then
     CXX="$i";
     break;