Commit 29c9d9e8ae for frr

commit 29c9d9e8ae4f951974cc77534eaf176036e0d406
Author: Vincent Jardin <vjardin@free.fr>
Date:   Mon Nov 9 19:11:07 2026 +0100

    build: disable protobuf when protoc-c or libprotobuf-c is missing

    When protoc-c or libprotobuf-c is missing, configure does not disable
    protobuf, and the build fails on the first generated file, as on
    macOS:

      PROTOC_C qpb/qpb.pb-c.c
      /bin/sh: /bin/false: No such file or directory
      gmake[1]: *** [Makefile:20647: qpb/qpb.pb-c.c] Error 127

    Unless protobuf was requested, disable it with a notice then, and clear
    PROTO3 too, so that HAVE_PROTOBUF3 does not build mlag/libmlag_pb.la
    without protoc-c either.

    Signed-off-by: Vincent Jardin <vjardin@free.fr>

diff --git a/configure.ac b/configure.ac
index 11f551424c..4b6cceb855 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1503,6 +1503,13 @@ if test "$enable_protobuf" != "no"; then
       AC_MSG_FAILURE([protobuf requested but libprotobuf-c > 1.3.0 not found])
     fi
   fi
+
+  # missing on macOS
+  if test "$PROTOC_C" = "/bin/false" || test "$PROTO3" = "false"; then
+    AC_MSG_NOTICE([protoc-c and/or libprotobuf-c not found, protobuf support disabled])
+    enable_protobuf="no"
+    PROTO3=false
+  fi
 fi
 #
 # End of logic for protobuf support.