diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2004-07-19 04:27:13 +0000 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2004-07-19 04:27:13 +0000 |
commit | 0d4387dedc4ad83460bf52fc326c475c64133634 (patch) | |
tree | f178be0490904f0f414a11c86b583edba7288e38 /acinclude.m4 | |
parent | 2d217feaa42c6f4d43439a1193e706ea2b6a814b (diff) | |
download | httpd-0d4387dedc4ad83460bf52fc326c475c64133634.tar.gz |
Workaround RHEL 3 'cuteness' for OpenSSL by calling pkg-config openssl.
For more info, see: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82369
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104329 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e256967fc2..75b40ed336 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -381,6 +381,13 @@ if test "x$ap_ssltk_configured" = "x"; then ]) dnl Look for additional, possibly missing headers AC_CHECK_HEADERS(openssl/engine.h) + if test -n "$PKGCONFIG"; then + $PKGCONFIG openssl + if test $? -eq 0; then + ap_ssltk_inc="$ap_ssltk_inc `$PKGCONFIG --cflags-only-I openssl`" + CPPFLAGS="$CPPFLAGS $ap_ssltk_inc" + fi + fi else AC_MSG_RESULT([no OpenSSL headers found]) fi @@ -468,6 +475,13 @@ if test "x$ap_ssltk_configured" = "x"; then # Put SSL libraries in SSL_LIBS. if test "$ap_ssltk_type" = "openssl"; then APR_SETVAR(SSL_LIBS, [-lssl -lcrypto]) + if test -n "$PKGCONFIG"; then + $PKGCONFIG openssl + if test $? -eq 0; then + ap_ssltk_libdep=`$PKGCONFIG --libs openssl` + APR_ADDTO(SSL_LIBS, $ap_ssltk_libdep) + fi + fi else APR_SETVAR(SSL_LIBS, [-lsslc]) fi |