add prereq check for extended getopt (#3944)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 2 Sep 2008 10:57:14 +0000 (10:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 2 Sep 2008 10:57:14 +0000 (10:57 +0000)
SVN-Revision: 12491

include/prereq-build.mk

index fbe7d69..d6d2d73 100644 (file)
@@ -134,3 +134,11 @@ endef
 $(eval $(call Require,gnu-find, \
        Please install GNU find \
 ))
+
+define Require/getopt-extended
+       getopt --long - - >/dev/null
+endef
+
+$(eval $(call Require,getopt-extended, \
+       Please install an extended getopt version that supports --long \
+))