From a35f9b4747edb8252e3b814ea5580fd22f62dc6b Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 30 Mar 2006 18:06:17 +0000 Subject: Avoid extra stat() calls by not repeatedly checking whether a file exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not. --- security/PAM/builtin.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'security/PAM') diff --git a/security/PAM/builtin.mk b/security/PAM/builtin.mk index 3b3c81f2e01..47c69c8a802 100644 --- a/security/PAM/builtin.mk +++ b/security/PAM/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.12 2005/06/01 18:03:20 jlam Exp $ +# $NetBSD: builtin.mk,v 1.13 2006/03/30 18:06:18 jlam Exp $ BUILTIN_PKG:= linux-pam @@ -15,7 +15,7 @@ BUILTIN_FIND_GREP.H_LINUX_PAM= The Linux-PAM Framework layer API ### .if !defined(IS_BUILTIN.linux-pam) IS_BUILTIN.linux-pam= no -. if empty(H_LINUX_PAM:M${LOCALBASE}/*) && exists(${H_LINUX_PAM}) +. if empty(H_LINUX_PAM:M__nonexistent__) && empty(H_LINUX_PAM:M${LOCALBASE}/*) IS_BUILTIN.linux-pam= yes . endif .endif -- cgit v1.2.3