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 fbe7d69f4483f1bcffe636c3adeb999e33cbec8d..d6d2d73a63c39549936e19f5e2e4c2920f2fbd55 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 \
+))