prereq-build: replace the openssl command check with a check for headers
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42995
This commit is contained in:
parent
c68b74e5c4
commit
35b34b20d4
1 changed files with 7 additions and 2 deletions
|
@ -168,8 +168,13 @@ $(eval $(call RequireCommand,svn, \
|
||||||
Please install the subversion client. \
|
Please install the subversion client. \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call RequireCommand,openssl, \
|
define Require/openssl
|
||||||
Please install openssl. \
|
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,openssl, \
|
||||||
|
Please install openssl (with development headers) \
|
||||||
))
|
))
|
||||||
|
|
||||||
define Require/gnu-find
|
define Require/gnu-find
|
||||||
|
|
Loading…
Reference in a new issue