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

Alan Modra amodra@gmail.com
Sat May 16 00:48:22 GMT 2026


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.])],

-- 
Alan Modra


More information about the Binutils mailing list