[PATCH] binutils/configure: look for msgpack-c.pc (in addition to msgpack.pc)

Jiang, Haochen haochen.jiang@intel.com
Sat May 16 04:12:34 GMT 2026


> From: Alan Modra <amodra@gmail.com>
> Sent: Saturday, May 16, 2026 8:48 AM
> 
> It needs this, to tell PKG_CHECK_MODULES that a missing module will be
> handled by the caller.
> 
> diff --git a/binutils/configure.ac b/binutils/configure.ac
> index 234eeaadab3..74baea68529 100644
> --- a/binutils/configure.ac
> +++ b/binutils/configure.ac
> @@ -300,7 +300,7 @@ AS_IF([test "$with_msgpack" != no],
>     # msgpack.pc was renamed to msgpack-c.pc at some point, look for the new
>     # one first.
>     PKG_CHECK_MODULES([MSGPACK], [msgpack-c], [have_msgpack=yes],
> -     [PKG_CHECK_MODULES([MSGPACK], [msgpack], [have_msgpack=yes])])
> +     [PKG_CHECK_MODULES([MSGPACK], [msgpack], [have_msgpack=yes],
> [:])])
> 
>     AS_IF([test "$have_msgpack" = yes],
>       [AC_DEFINE([HAVE_MSGPACK], [1], [Define to 1 if msgpack is available.])],
> 

That patch on trunk has fixed my issue. Thx for the help.

Thx,
Haochen

> --
> Alan Modra


More information about the Binutils mailing list