summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 98a9ff18af..f4a165a298 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -368,6 +368,10 @@ if test "x$ap_ssltk_configured" = "x"; then
if test "x$ap_ssltk_base" != "x"; then
ap_ssltk_inc="-I$ap_ssltk_base/include"
CPPFLAGS="$CPPFLAGS $ap_ssltk_inc"
+ # Ensure that the given path is used by pkg-config too, otherwise
+ # the system openssl.pc might be picked up instead.
+ PKG_CONFIG_PATH="${ap_ssltk_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
+ export PKG_CONFIG_PATH
fi
if test "x$ap_ssltk_type" = "x"; then
AC_MSG_CHECKING(for OpenSSL version)