]> git.stg.codes - stg.git/blobdiff - projects/convertor/build
Unused modules removed from inetaccess plugin
[stg.git] / projects / convertor / build
index 491cf81c886781bfda23c0f5b33c80727d348e67..0ffb2b8bf216e107ecc8015d5029cacb5b7e7b6b 100755 (executable)
@@ -83,6 +83,25 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
+echo -n "Checking gcc... "
+gcc --version > /dev/null 2> /dev/null
+if [ $? != 0 ]
+then
+    echo "FAIL!"
+    echo "gcc not found"
+    exit;
+fi
+echo "found"
+echo -n "Checking g++... "
+g++ --version > /dev/null 2> /dev/null
+if [ $? != 0 ]
+then
+    echo "FAIL!"
+    echo "g++ not found"
+    exit;
+fi
+echo "found"
+
 echo -n "Checking endianess... "
 echo "int main() { int probe = 0x00000001; return *(char *)&probe; }" > build_check.c
 gcc $CXXFLAGS $LDFLAGS -L/usr/lib/mysql -L/usr/local/lib/mysql build_check.c -o fake > /dev/null 2> /dev/null