RetroArch/qb/qb.system.sh
Autechre 21a1275966
(QB) MacOS X 10.5's toolchain does not support extra languages, (#11917)
so disable HAVE_LANGEXTRA. We can later make this more generic
by checking for specific GCC versions as a cutoff point for
HAVE_LANGEXTRA support, but this will do for now
2021-01-21 06:50:35 +01:00

32 lines
654 B
Bash

PLATFORM_NAME="$(uname -s)"
ARCHITECTURE_NAME="$(uname -m)"
if [ -n "${CROSS_COMPILE:=}" ]; then
case "$CROSS_COMPILE" in
*'-mingw32'*) OS='Win32';;
*'-msdosdjgpp'*) OS='DOS';;
*);;
esac
fi
if [ -z "$CROSS_COMPILE" ] || [ -z "$OS" ]; then
case "$PLATFORM_NAME" in
'Linux') OS='Linux';;
*'BSD') OS='BSD';;
'Darwin') OS='Darwin';;
'CYGWIN'*) OS='Cygwin';;
'Haiku') OS='Haiku';;
'MINGW'*) OS='Win32';;
'SunOS') OS='SunOS';;
*) OS="Win32";;
esac
fi
DISTRO=''
if [ -e /etc/lsb-release ]; then
. /etc/lsb-release
DISTRO="(${DISTRIB_DESCRIPTION} ${DISTRIB_RELEASE})"
fi
printf %s\\n "Checking operating system ... $OS ${DISTRO}"