Fix finding msgpack 6+

`msgpack.pc` was renamed to `msgpack-c.pc` upstream in msgpack/msgpack-c#1053.
This commit is contained in:
Carlo Cabrera 2023-03-05 20:58:13 +08:00
parent ac919516f4
commit a5c6e80d3c
No known key found for this signature in database
GPG key ID: C74D447FC549A1D0

View file

@ -209,6 +209,17 @@ PKG_CHECK_MODULES(
],
found_msgpack=no
)
# msgpack.pc was renamed to msgpack-c.pc in 6.0.0.
PKG_CHECK_MODULES(
MSGPACKC,
msgpack-c >= 1.1.0,
[
CPPFLAGS="$MSGPACKC_CFLAGS $CPPFLAGS"
LIBS="$MSGPACKC_LIBS $LIBS"
found_msgpack=yes
],
found_msgpack=no
)
if test "x$found_msgpack" = xno; then
AC_MSG_ERROR("msgpack >= 1.1.0 not found")
fi