#!/bin/csh -f
# Try to circumvent an IRIX ld bug which does not understand -lm.
if ( -x /bin/uname ) then
	if (`/bin/uname` == IRIX  || `/bin/uname` == Linux) then
		ld `echo $* | sed 's/\-lm/\/usr\/lib\/libm.a/g' `
	else
		ld $*
	endif
else if ( -x /usr/bin/uname ) then
	if (`/usr/bin/uname` == FreeBSD) then
		ld `echo $* | sed 's/\-lm/\/usr\/lib\/libm.a/g' `
	else
		ld $*
	endif
else
	ld $*
endif
