From 4e202252f488b8e2df658b82063b722f5a9629d3 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Thu, 19 Apr 2018 15:04:24 -0700 Subject: [PATCH] tests: dist-check: added support for OPENSSL_PREFIX for using a different openssl installation. --- util/dist-check | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/dist-check b/util/dist-check index 2f266fe..2f5dc22 100755 --- a/util/dist-check +++ b/util/dist-check @@ -45,6 +45,13 @@ if ($^O eq 'darwin') { . "-I/usr/local/opt/pcre/include/'" . " --with-ld-opt='-L/usr/local/opt/openssl/lib/ " . "-L/usr/local/opt/pcre/lib/'"; + +} else { + my $ssl_prefix = $ENV{OPENSSL_PREFIX}; + if (defined $ssl_prefix) { + $cfg_opts .= " --with-cc-opt='-I$ssl_prefix/include/' " + . " --with-ld-opt='-L$ssl_prefix/lib/' "; + } } my $prefix;