#!/bin/sh
env=/usr/bin/env
fgrep=/usr/bin/fgrep
ldconfig=/sbin/ldconfig
if [ x$2 = xINSTALL ]; then
	$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3'
	if [ $? -ne 0 ]; then
		cat <<END
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ There are no aout libs on this machine. Install compat22 distribution. +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
END
		exit 1
	fi
	$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lX11.6'
	if [ $? -ne 0 ]; then
		cat <<END
+++++++++++++++++++++++++++++++++++++++++++++
+ There are no X aout libs on this machine. +
+++++++++++++++++++++++++++++++++++++++++++++
END
		exit 1
	fi
fi
exit 0;

