X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fprereq-build.mk;h=5a743225f65978063d023b5ff3f2d969f476efd3;hb=256d49be3cc7dd5bc13d2aba0dd016496e15ba93;hp=b7ada69bb418ba51c3cedbc05f277a5fffb637c5;hpb=cbdd346b11c6f125f48cdb1e95870d16e5c0d628;p=openwrt%2Fopenwrt.git diff --git a/include/prereq-build.mk b/include/prereq-build.mk index b7ada69bb4..5a743225f6 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -168,8 +168,17 @@ $(eval $(call RequireCommand,svn, \ Please install the subversion client. \ )) +define Require/libssl + echo 'int main(int argc, char **argv) { SSL_library_init(); return 0; }' | \ + gcc -include openssl/ssl.h -x c -o $(TMP_DIR)/a.out - -lcrypto -lssl +endef + +$(eval $(call Require,libssl, \ + Please install the openssl library (with development headers) \ +)) + $(eval $(call RequireCommand,openssl, \ - Please install openssl. \ + Please install openssl. \ )) define Require/gnu-find @@ -187,3 +196,7 @@ endef $(eval $(call Require,getopt-extended, \ Please install an extended getopt version that supports --long \ )) + +$(eval $(call RequireCommand,file, \ + Please install the 'file' package. \ +))