Add some additional checks in qb.

This commit is contained in:
Themaister 2011-06-25 13:57:46 +02:00
parent b6272f9653
commit 60b94bbe43

View File

@ -7,19 +7,20 @@ TEMP_EXE=.tmp
echo -n "Checking operating system ... " echo -n "Checking operating system ... "
OS="Win32" # whatever ;D OS="Win32" # whatever ;D
unamestr="`uname -a`" unamestr="`uname -a`"
if [ ! -z "`echo $unamestr | grep -i Linux`" ]; then if [ ! -z "`echo "$unamestr" | grep -i Linux`" ]; then
OS="Linux" OS="Linux"
elif [ ! -z "`echo $unamestr | grep -i Darwin`" ]; then elif [ ! -z "`echo "$unamestr" | grep -i Darwin`" ]; then
OS="Darwin" OS="Darwin"
elif [ ! -z "`echo $unamestr | grep -i BSD`" ]; then elif [ ! -z "`echo "$unamestr" | grep -i BSD`" ]; then
OS="BSD" OS="BSD"
elif [ ! -z "`echo $unamestr | grep -i NT`" ]; then elif [ ! -z "`echo "$unamestr" | grep -i MINGW32`" ]; then
OS="MinGW"
elif [ ! -z "`echo "$unamestr" | grep -i NT`" ]; then
OS="Cygwin" OS="Cygwin"
fi fi
echo $OS echo $OS
# Checking for working C compiler # Checking for working C compiler
if [ "$USE_LANG_C" = yes ]; then if [ "$USE_LANG_C" = yes ]; then
echo "Checking for working C compiler ..." echo "Checking for working C compiler ..."