From 5c1020c51a3b495c89f57a893345386f094df15f Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Sat, 25 Feb 2012 18:12:58 -0500 Subject: [PATCH] Add configure test for protoc --- configure.ac | 1 + src/protobufs/Makefile.am | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 42cb20b..5d18274 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,7 @@ AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_RANLIB +AC_PATH_PROG([PROTOC], [protoc], [AC_MSG_ERROR([protoc is not found])]) WARNING_CXXFLAGS="" PICKY_CXXFLAGS="" diff --git a/src/protobufs/Makefile.am b/src/protobufs/Makefile.am index 0fc6471..49b514f 100644 --- a/src/protobufs/Makefile.am +++ b/src/protobufs/Makefile.am @@ -1,6 +1,5 @@ source = userinput.proto hostinput.proto transportinstruction.proto -PROTOC = protoc AM_CPPFLAGS = $(protobuf_CFLAGS) AM_CXXFLAGS = $(WARNING_CXXFLAGS) -fno-default-inline -pipe