> +# Check existance of netstat before proceeding. > +netstat > /dev/null > +if [ ! $? -eq 0 ]; then > + echo "netstat is required" > + exit 77 > +fi
Sounds good to me, though it doesnât allow you to distinguish between ânot foundâ and some other netstat failure (unlike AC_PATH_PROG([NETSTAT], [netstat]) + @NETSTAT@.) If netstat fails, for whatever reason, then you're SOL anyway. This makes it easy to test with different version, just frob PATH.