#!/bin/sh ERROR=0 TOPDIR=`pwd` # test for nasm if [ -x /usr/bin/nasm -o -x /usr/local/bin/nasm ]; then HAVE_NASM=y; else HAVE_NASM=n; fi # test for yasm if [ -x /usr/bin/yasm -o -x /usr/local/bin/yasm ]; then HAVE_YASM=y; else HAVE_YASM=n; fi if [ `uname -m` = i686 ]; then if [ $HAVE_NASM = n ]; then echo " *** Nasm is required. Download it from nasm.sourceforge.net"; ERROR=1 fi fi if [ $HAVE_YASM = n ]; then echo " *** Yasm is required. Download it from www.tortall.net/projects/yasm/"; ERROR=1 fi # test for -msse support rm -f a.out cat > conftest.c << EOF int main() { return 0; } EOF gcc -msse conftest.c > /dev/null 2>&1 if [ -x a.out ]; then HAVE_GCC=y; else HAVE_GCC=n; fi rm -f a.out conftest.c if [ $HAVE_GCC = n ]; then echo " *** GCC 3.2.2 or greater is required. Download it from gcc.gnu.org"; ERROR=1 fi if [ $ERROR -ne 0 ]; then exit 1 fi