mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +00:00
6c110e15a3
not rely on sdl-config on OSX Framework builds, define new SDL_FRAMEWORK and NO_SDL_CONFIG preprocessor macros to indicate that and include SDL.h with the "SDL" subdirectory name included. Add new libmad and ogg/vorbis headers and static and dynamic libraries for macosx. Xcode project files need further updating. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@699 af15c1b1-3010-417e-b628-4374ebc0bcbd
62 lines
811 B
Bash
Executable file
62 lines
811 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# script from loki_setup tools
|
|
|
|
DetectARCH()
|
|
{
|
|
status=1
|
|
case `uname -m` in
|
|
amd64 | x86_64)
|
|
echo "x86_64"
|
|
status=0;;
|
|
i?86 | i86*)
|
|
echo "x86"
|
|
status=0;;
|
|
90*/*)
|
|
echo "hppa"
|
|
status=0;;
|
|
*)
|
|
case `uname -s` in
|
|
IRIX*)
|
|
echo "mips"
|
|
status=0;;
|
|
AIX*)
|
|
echo "ppc"
|
|
status=0;;
|
|
*)
|
|
arch=`uname -p 2> /dev/null || uname -m`
|
|
if test "$arch" = powerpc; then
|
|
echo "ppc"
|
|
else
|
|
echo $arch
|
|
fi
|
|
status=0;;
|
|
esac
|
|
esac
|
|
return $status
|
|
}
|
|
|
|
DetectOS()
|
|
{
|
|
os=`uname -s`
|
|
if test "$os" = "OpenUNIX"; then
|
|
echo SCO_SV
|
|
else
|
|
echo $os
|
|
fi
|
|
return 0
|
|
}
|
|
|
|
if test "$1" = "os"; then
|
|
result=`DetectOS`
|
|
elif test "$1" = "arch"; then
|
|
result=`DetectARCH`
|
|
else
|
|
result="OS: `DetectOS`, Arch: `DetectARCH`"
|
|
fi
|
|
|
|
status="$?"
|
|
echo $result
|
|
|
|
exit $status
|
|
|