diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-30 18:06:17 +0000 |
commit | 5821c0669819ba2f9f227b1d2e4caae4e6e92a56 (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /devel/dlcompat | |
parent | 4ebb7715f4e802673023e1e6a936e6c0d9ada427 (diff) | |
download | pkgsrc-5821c0669819ba2f9f227b1d2e4caae4e6e92a56.tar.gz |
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.
Diffstat (limited to 'devel/dlcompat')
-rw-r--r-- | devel/dlcompat/builtin.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/dlcompat/builtin.mk b/devel/dlcompat/builtin.mk index 3d0af773b02..b158e625103 100644 --- a/devel/dlcompat/builtin.mk +++ b/devel/dlcompat/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.7 2005/06/01 20:35:41 jlam Exp $ +# $NetBSD: builtin.mk,v 1.8 2006/03/30 18:06:17 jlam Exp $ BUILTIN_PKG:= dlcompat @@ -14,7 +14,7 @@ BUILTIN_FIND_FILES.H_DLFCN= /usr/include/dlfcn.h ### .if !defined(IS_BUILTIN.dlcompat) IS_BUILTIN.dlcompat= no -. if empty(H_DLFCN:M${LOCALBASE}/*) && exists(${H_DLFCN}) && \ +. if empty(H_DLFCN:M__nonexistent__) && empty(H_DLFCN:M${LOCALBASE}/*) && \ !empty(BUILTIN_LIB_FOUND.dl:M[yY][eE][sS]) IS_BUILTIN.dlcompat= yes . endif |