Skip to content

Commit 5ac6ab7

Browse files
committed
Use PKG_CHECK_MODULES to check for libgcrypt
On macOS running ./configure --enable-omemo was failing to find gcrypt despite being installed.
1 parent 34e8b1b commit 5ac6ab7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ AM_CONDITIONAL([BUILD_OMEMO], [false])
336336
if test "x$enable_omemo" != xno; then
337337
OMEMO_LIBS=""
338338
PKG_CHECK_MODULES([libsignal], [libsignal-protocol-c >= 2.3.2],
339-
[OMEMO_LIBS="-lsignal-protocol-c"
340-
AC_CHECK_LIB([gcrypt], [gcry_md_extract],
341-
[OMEMO_LIBS="-lgcrypt $OMEMO_LIBS"
339+
[OMEMO_LIBS="$libsignal_LIBS"
340+
PKG_CHECK_MODULES([gcrypt], [libgcrypt >= 1.7.0],
341+
[OMEMO_LIBS="$gcrypt_LIBS $OMEMO_LIBS"
342342
AM_CONDITIONAL([BUILD_OMEMO], [true])],
343343
[AC_MSG_NOTICE([gcrypt >= 1.7.0 not found, OMEMO support not enabled])])],
344344
[AC_MSG_NOTICE([libsignal-protocol-c >= 2.3.2 not found, OMEMO support not enabled])])

0 commit comments

Comments
 (0)