#!/bin/sh
# %Z%$RCSfile$ version $Revision: #11 $ created $Date: 2001/08/30 $
# %Z%%Q%
# This script uses f77(1) -v to try to figure out what system libraries
# should be specified when trying to use S-PLUS static loading or dynamic
# loading with dyn.load2

tmpdir=${TMPDIR:-/tmp}
cd $tmpdir
echo "      end" > $$.f
f77 -v -o $$.out $$.f 2>&1 | grep '\/bin\/ld' | sed 's/  */\
/g' | grep '^-[Ll]' || (echo "*** ERROR: while trying to run f77 compiler, so may not be able to provide hint ***")
rm -f $$.f $$.out

