#! /bin/sh# nomode.test - check that we can actually get help# Test script header.need_prefix=noif test -z "$srcdir"; thensrcdir=`echo "$0" | sed 's%/[^/]*$%%'`test "$srcdir" = "$0" && srcdir=.test "${VERBOSE+set}" != "set" && VERBOSE=yesfi. $srcdir/defs || exit 1status=0if $libtool --help 2>&1 | grep '^Usage:' >/dev/null; then :elseecho "cannot get top-level help"status=1fi# The emoticon below works around a nasty bug in Ultrix /bin/shif ($libtool 2>&1; :) | grep 'you must specify a MODE' >/dev/null; then :elseecho "invalid error when no mode is specified"status=1fiexit $status