Avoid clobbering older msgpack versions

Co-authored-by: Sam James <sam@gentoo.org>
This commit is contained in:
Carlo Cabrera 2023-04-03 15:13:45 +08:00
parent a5c6e80d3c
commit 2d79ff67f7
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -207,18 +207,19 @@ PKG_CHECK_MODULES(
LIBS="$MSGPACK_LIBS $LIBS"
found_msgpack=yes
],
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
# 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")