summaryrefslogtreecommitdiffstats
path: root/exporters/pkg-config/libssl.pc.in
diff options
context:
space:
mode:
Diffstat (limited to 'exporters/pkg-config/libssl.pc.in')
-rw-r--r--exporters/pkg-config/libssl.pc.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/exporters/pkg-config/libssl.pc.in b/exporters/pkg-config/libssl.pc.in
index 80c91ec034..162db65c99 100644
--- a/exporters/pkg-config/libssl.pc.in
+++ b/exporters/pkg-config/libssl.pc.in
@@ -1,8 +1,13 @@
-prefix={- $OpenSSL::safe::installdata::PREFIX -}
+prefix={- $OpenSSL::safe::installdata::PREFIX[0] -}
exec_prefix=${prefix}
-libdir={- $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX
- ? '${exec_prefix}/' . $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX
- : $OpenSSL::safe::installdata::libdir -}
+libdir={- if (defined $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0]) {
+ my $x = '';
+ $x = '/' . $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0]
+ if $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0];
+ '${exec_prefix}' . $x;
+ } else {
+ $OpenSSL::safe::installdata::libdir[0];
+ } -}
includedir={- $OUT = '';
$OUT .= '${prefix}/' . $_ . ' '
foreach (@OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX); -}