summaryrefslogtreecommitdiff
path: root/mk/configure
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-05 10:52:40 +0000
committerrillig <rillig>2006-10-05 10:52:40 +0000
commit4f435bce4a10f2c92f15a8cde23890a316cc08ab (patch)
treebae91ec00f32773fe74b211162e2161b997940ae /mk/configure
parent4852c7fea032400a88662db13f6bcefdf8eecb43 (diff)
downloadpkgsrc-4f435bce4a10f2c92f15a8cde23890a316cc08ab.tar.gz
If a word in a configure script is "#", stop scanning that line for
"test ==".
Diffstat (limited to 'mk/configure')
-rw-r--r--mk/configure/check-portability.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/configure/check-portability.mk b/mk/configure/check-portability.mk
index 36b9b3a9cd5..cc66bc48c4f 100644
--- a/mk/configure/check-portability.mk
+++ b/mk/configure/check-portability.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.mk,v 1.3 2006/10/05 02:58:28 rillig Exp $
+# $NetBSD: check-portability.mk,v 1.4 2006/10/05 10:52:40 rillig Exp $
#
# This file contains some checks that are applied to the configure
# scripts to check for certain constructs that are known to cause
@@ -46,6 +46,8 @@ _configure-check-for-test:
if [ ":$$1" = ":test" ] && [ ":$$3" = ":==" ]; then \
found=yes; \
${ERROR_MSG} "[configure.mk] $$line"; \
+ elif [ ":$$1" = ":#" ]; then \
+ break; \
fi; \
shift; \
done; \