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 /mk | |
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 'mk')
-rw-r--r-- | mk/db1.builtin.mk | 12 | ||||
-rw-r--r-- | mk/dlopen.builtin.mk | 12 | ||||
-rw-r--r-- | mk/pthread.builtin.mk | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/mk/db1.builtin.mk b/mk/db1.builtin.mk index 7db67072b2b..f5bf2a577f1 100644 --- a/mk/db1.builtin.mk +++ b/mk/db1.builtin.mk @@ -1,14 +1,14 @@ -# $NetBSD: db1.builtin.mk,v 1.6 2004/11/26 01:22:31 jlam Exp $ +# $NetBSD: db1.builtin.mk,v 1.7 2004/11/28 05:44:34 jlam Exp $ .for _lib_ in db db1 . 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 diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk index 18939b810bd..809e0d0fee1 100644 --- a/mk/dlopen.builtin.mk +++ b/mk/dlopen.builtin.mk @@ -1,14 +1,14 @@ -# $NetBSD: dlopen.builtin.mk,v 1.5 2004/11/26 21:04:46 jlam Exp $ +# $NetBSD: dlopen.builtin.mk,v 1.6 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 diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk index 334e9374cb1..e3b50644a6f 100644 --- a/mk/pthread.builtin.mk +++ b/mk/pthread.builtin.mk @@ -1,14 +1,14 @@ -# $NetBSD: pthread.builtin.mk,v 1.4 2004/11/26 08:18:30 jlam Exp $ +# $NetBSD: pthread.builtin.mk,v 1.5 2004/11/28 05:44:34 jlam Exp $ .for _lib_ in pthread c_r rt . 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 |