#! /bin/sh
# Test lcc (or other compiler) fpinfos.
# Usage:
#	[env CC=C-compiler] fpinfo.sh [-DHAVE_LONGLONG]
# [21-Mar-2001]
CC=${CC-lcc}

LIBDIR=`dirname $0`
trap '/bin/rm -f fpinfo.o a.out'

if test "`basename $CC`" = "lcc"
then
	OPTIONS=
else
	OPTIONS='-DHAVE_LONGLONG '
fi

echo ========================================================================
echo Test of C data sizes with compiler $CC $OPTIONS "$@"
/bin/rm -f a.out &&
	 eval $CC $OPTIONS "$@" $LIBDIR/fpinfo.c &&
	 ./a.out &&
	 /bin/rm -f a.out 
echo ========================================================================
