]> git.stg.codes - stg.git/commitdiff
Fix error with undefined CC and CXX
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 20 Jun 2011 12:24:21 +0000 (15:24 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 20 Jun 2011 12:24:21 +0000 (15:24 +0300)
projects/convertor/build
projects/rlm_stg/build
projects/rscriptd/build
projects/sgauth/build
projects/sgauthstress/build
projects/sgconf/build
projects/sgconf_xml/build
projects/stargazer/build

index 4108fbdd3327242836f2134a55f2c992a604817f..baf22adb3ddaab0cbe6f1c8c71b391d1c4d754fd 100755 (executable)
@@ -84,6 +84,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index 815933340fc92e9c082abcb2a1ad295a49dcbd2b..82677927a7a8614f6955923c6fc4ddb0406dc694 100755 (executable)
@@ -89,6 +89,16 @@ else
     CXXFLAGS="$CXXFLAGS -DHAVE_CLOSEFROM"
 fi
 
     CXXFLAGS="$CXXFLAGS -DHAVE_CLOSEFROM"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index 88fcef0b90fd38901f5372ee91d77dc1063fe236..38ec5fc1388c6a7d2db4e1e55e20e74f96db5239 100755 (executable)
@@ -94,6 +94,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index 81a897f967a8b99a2b290997f42fbe7bad95cfda..1c3eb67af26e4c31c9d8f9049f4e045ffe143a3d 100755 (executable)
@@ -92,6 +92,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index c4f254d2b948f2b02fa80c6c97694310e163c0a6..6cca9adb3d7ecd0726f9d96192d798a88cf5c6c9 100755 (executable)
@@ -96,6 +96,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index c0cb49b62cf2a442cb1c71f24693441e3ab358d2..44f6e617c944dd7d10cc7303769a83a681955a1d 100755 (executable)
@@ -91,6 +91,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index 77924a9c45b34e2dbd6662dfc306434047409c4d..ea18daef53758b06a8a2aaee3196f7b36648f39c 100755 (executable)
@@ -91,6 +91,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
index c2b171a498134d9d3bd9e7364a4626e9237e2586..a83ab8fedf182d3f1299cbb7bf0d7a8657de2e5b 100755 (executable)
@@ -59,7 +59,7 @@ MIN_XMLRPCC_VERSION="1.06.27"
 XMLRPC_FEATURES="c++2 abyss-server"
 
 
 XMLRPC_FEATURES="c++2 abyss-server"
 
 
-if [ -z $1 ]
+if [ -z "$1" ]
 then
     DEFS="$DEFS -DNDEBUG"
     MAKEOPTS="-j1"
 then
     DEFS="$DEFS -DNDEBUG"
     MAKEOPTS="-j1"
@@ -158,6 +158,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]