X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c29f0fb663a3cef00fd918d67cd1f222fdcb701e..463995e9899beaf6fa381d68d8050b2c449142ff:/projects/convertor/build?ds=sidebyside diff --git a/projects/convertor/build b/projects/convertor/build index 491cf81c..0ffb2b8b 100755 --- a/projects/convertor/build +++ b/projects/convertor/build @@ -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