X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fprereq-build.mk;h=5a743225f65978063d023b5ff3f2d969f476efd3;hb=a7597a35b19cc662627f1d90fee1753da441e9d4;hp=2e8d712cb8596b98b69992e4848158b7d8fc833e;hpb=e14b26649c54c586f90624c7954932ed1a09772c;p=openwrt.git diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 2e8d712cb8..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 @@ -189,5 +198,5 @@ $(eval $(call Require,getopt-extended, \ )) $(eval $(call RequireCommand,file, \ - Please install file. \ + Please install the 'file' package. \ ))