#!/bin/sh
# @(#)LIB_HINT version 3.10 created 2/12/96
# @(#)Copyright (c), 1987, 1996 StatSci, Inc.  All rights reserved.
# 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

