summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-01-22 11:33:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-01-23 14:34:06 +0100
commitc0c4d7a0a556ec66e3068d36a883e84d1efb0690 (patch)
tree1caba64a4ba72e937920586767bcd3035d49a4dc /configure
parent87a814fdce522d45aa31aa258cb5514d7e754bff (diff)
configure: Correctly add openssl cflags and libs
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 1bfd3e9244..c5bcb784f2 100755
--- a/configure
+++ b/configure
@@ -4582,7 +4582,8 @@ enabled mmal && { check_lib interface/mmal/mmal.h mmal_port_connect
check_lib interface/mmal/mmal.h mmal_port_connect ; }
check_lib interface/mmal/mmal.h mmal_port_connect ; } ||
die "ERROR: mmal not found"; }
-enabled openssl && { check_pkg_config openssl openssl/ssl.h SSL_library_init ||
+enabled openssl && { check_pkg_config openssl openssl/ssl.h SSL_library_init && {
+ add_cflags $openssl_cflags && add_extralibs $openssl_libs; }||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||