summaryrefslogtreecommitdiff
path: root/mk/features
diff options
context:
space:
mode:
authorjlam <jlam>2007-09-08 05:03:52 +0000
committerjlam <jlam>2007-09-08 05:03:52 +0000
commit65a858f0089581af1a8562228554636bda650efb (patch)
tree9b652d86514ea9406e2679033baefd32d74a3421 /mk/features
parent4b7ea1e30ae863512c3da62bc4a4dacea16613f7 (diff)
downloadpkgsrc-65a858f0089581af1a8562228554636bda650efb.tar.gz
Canonicalize the way the features are tested.
Diffstat (limited to 'mk/features')
-rw-r--r--mk/features/features-vars.mk44
1 files changed, 26 insertions, 18 deletions
diff --git a/mk/features/features-vars.mk b/mk/features/features-vars.mk
index 30d72688be0..c5d847352f2 100644
--- a/mk/features/features-vars.mk
+++ b/mk/features/features-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: features-vars.mk,v 1.2 2007/09/08 04:54:12 jlam Exp $
+# $NetBSD: features-vars.mk,v 1.3 2007/09/08 05:03:52 jlam Exp $
#
# This file is include by bsd.prefs.mk.
#
@@ -45,11 +45,13 @@ MISSING_FEATURES+= ${_feature_}
. endif
.endfor
-.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mgetopt_long)
-. if !exists(/usr/include/getopt.h)
-MISSING_FEATURES+= getopt_long
+.for _feature_ in getopt_long
+. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !exists(/usr/include/getopt.h)
+MISSING_FEATURES+= ${_feature_}
+. endif
. endif
-.endif
+.endfor
.for _feature_ in getprogname setprogname
. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
@@ -59,31 +61,37 @@ MISSING_FEATURES+= ${_feature_}
. endif
.endfor
-.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mglob)
-. if !exists(/usr/include/glob.h)
-MISSING_FEATURES+= glob
+.for _feature_ in glob
+. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !exists(/usr/include/glob.h)
+MISSING_FEATURES+= ${_feature_}
+. endif
. endif
-.endif
+.endfor
-.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mregex)
-. if !exists(/usr/include/regex.h)
-MISSING_FEATURES+= regex
+.for _feature_ in regex
+. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !exists(/usr/include/regex.h)
+MISSING_FEATURES+= ${_feature_}
+. endif
. endif
-.endif
+.endfor
.for _feature_ in snprintf vsnprintf
. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
. if !empty(LOWER_OPSYS:Mirix5*)
-MISSING_FEATURES+= snprintf
+MISSING_FEATURES+= ${_feature_}
. endif
. endif
.endfor
-.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mutimes)
-. if ${OPSYS} == "Interix"
-MISSING_FEATURES+= utimes
+.for _feature_ in utimes
+. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if ${OPSYS} == "Interix"
+MISSING_FEATURES+= ${_feature_}
+. endif
. endif
-.endif
+.endfor
.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mnbcompat)
MISSING_FEATURES+= nbcompat