Subject: Re: detecting ssh
To: Martti Kuparinen <>
From: Johnny Lam <>
List: tech-pkg
Date: 09/11/2001 09:29:52
On Tue, Sep 11, 2001 at 10:56:01AM +0300, Martti Kuparinen wrote:
> I'm creating package for keychain and before I'll submit a PR I'd
> like to know how to test if there is ssh-agent or not.
> Should I just do
> .if !exists(/usr/bin/ssh-agent)
> DEPENDS+=	...
> .endif
> or should I check for the operating system version and assume that
> after certain release there is ssh included in the operating system?
> Which is the "right" way to do this?

Feature tests are always more reliable than OS version comparisons.  The
Makefile fragment you coded above looks fine.


	-- Johnny Lam <>