Skip to content

Commit

Permalink
configure.ac: update Cyrus SASL's pkgconfig name
Browse files Browse the repository at this point in the history
Cyrus SASL provides the file libsasl2.pc for its libsasl2
library. This can be verified in its git repository:

  https://github.com/cyrusimap/cyrus-sasl/blob/master/libsasl2.pc.in

Our ./configure script checks instead for the name "cyrussasl", which
at some point may have been correct, but no longer works. We switch to
"libsasl2" so that we can locate the upstream file.

On some platforms (https://bugs.gentoo.org/918512) this will fix a
linking error. Thanks to Chris Pritchard for the report and the
diagnosis.
  • Loading branch information
orlitzky committed Dec 2, 2023
1 parent f203e0a commit 12b1403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ sasl_found="no"
if test \( x"$saslpath" = x"auto" -o x"$saslpath" = x"yes" \) -a \
x"$PKG_CONFIG" != x""
then
PKG_CHECK_MODULES([SASL], [cyrussasl >= 2.1.0],
PKG_CHECK_MODULES([SASL], [libsasl2 >= 2.1.0],
[
sasl_found="yes"
SASL_CPPFLAGS="$SASL_CFLAGS"
Expand Down

0 comments on commit 12b1403

Please sign in to comment.