diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-24 19:02:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-24 19:02:43 -0700 |
commit | b1ae7c79db78cc3b789701f81328669f9f8ed80f (patch) | |
tree | dc466d666b64114aaf1cf44d4bc781598dbac83c | |
parent | 1daae4574c19a122baf73b6f9457b0d383b1bc66 (diff) |
Bug 14247: If pkg-config can't find openssl.pc, just link with -lcrypto
X.Org bugzilla #14247 <http://bugs.freedesktop.org/show_bug.cgi?id=14247>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b2a07a6f3..b42b12068 100644 --- a/configure.ac +++ b/configure.ac @@ -1118,7 +1118,9 @@ PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS]) # OpenSSL used for SHA1 hashing in render/glyph.c, but we don't need all of # the OpenSSL libraries, just libcrypto -PKG_CHECK_MODULES([OPENSSL], [openssl], [OPENSSL_LIB_FLAGS=`$PKG_CONFIG --libs-only-L --libs-only-other openssl`]) +PKG_CHECK_EXISTS([openssl], + [PKG_CHECK_MODULES([OPENSSL], [openssl], + [OPENSSL_LIB_FLAGS=`$PKG_CONFIG --libs-only-L --libs-only-other openssl`])]) LIBCRYPTO="$OPENSSL_LIB_FLAGS -lcrypto" # Autotools has some unfortunate issues with library handling. In order to |