0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Document why we use AC_CHECK_LIB inside PKG_CHECK_MODULES here. [ci skip]

This commit is contained in:
Jason Volk 2019-06-06 15:02:09 -07:00
parent 55e2ac98ce
commit 3794c3e7df

View file

@ -1078,6 +1078,8 @@ PKG_CHECK_MODULES(SODIUM, libsodium,
have_sodium="yes"
AC_DEFINE([HAVE_SODIUM], [1], [Have libsodium])
], [
dnl NOTE that PKG_CHECK_MODULES is preferred, but on some systems it gives
dnl a false negative and we end up here with an AC_CHECK_LIB fallback.
RB_CHK_SYSHEADER(sodium.h, [SODIUM_H])
AC_CHECK_LIB([sodium], sodium_init,
[