diff options
author | jlam <jlam> | 2004-11-28 05:44:34 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-11-28 05:44:34 +0000 |
commit | 1888f22d985c69bcb64666a6d5db8c6c3c5d73f2 (patch) | |
tree | adac6ab7494a2e81a8a8c44e05d8447c97f6cef6 /devel/dlcompat | |
parent | f1ee65b4235d4f470c58177d0b2ea005072231fd (diff) | |
download | pkgsrc-1888f22d985c69bcb64666a6d5db8c6c3c5d73f2.tar.gz |
Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
Diffstat (limited to 'devel/dlcompat')
-rw-r--r-- | devel/dlcompat/builtin.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/dlcompat/builtin.mk b/devel/dlcompat/builtin.mk index 7011210996e..71560bd61e1 100644 --- a/devel/dlcompat/builtin.mk +++ b/devel/dlcompat/builtin.mk @@ -1,14 +1,14 @@ -# $NetBSD: builtin.mk,v 1.2 2004/11/26 23:16:35 jlam Exp $ +# $NetBSD: builtin.mk,v 1.3 2004/11/28 05:44:34 jlam Exp $ .for _lib_ in dl . if !defined(_BLNK_LIB_FOUND.${_lib_}) _BLNK_LIB_FOUND.${_lib_}!= \ - if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" = "/usr/lib/lib${_lib_}.*"; then \ - ${ECHO} "no"; \ - elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" = "/lib/lib${_lib_}.*"; then \ - ${ECHO} "no"; \ - else \ + if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \ ${ECHO} "yes"; \ + elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \ + ${ECHO} "yes"; \ + else \ + ${ECHO} "no"; \ fi BUILDLINK_VARS+= _BLNK_LIB_FOUND.${_lib_} . endif |